LISTING PROGRAM
Script menu:
using UnityEngine;
using System.Collections;
public class UI2 : MonoBehaviour
{
public GameObject MenuPanel;
public GameObject Tentang;
public GameObject Keluar;
public GameObject MenuobJek;
public GameObject YellowTang;
public GameObject Discus;
public GameObject Koi;
public GameObject BlackLace;
public GameObject Clown;
public GameObject arwana;
public GameObject Ghost;
public GameObject botana;
public GameObject kupu;
public GameObject molly;
void start()
{
MenuPanel.SetActive (true);
Tentang.SetActive (false);
Keluar.SetActive (false);
{
Application.LoadLevel (scene);
}
public void TentangClick()
{
MenuPanel.SetActive (false);
Tentang.SetActive (true);
Keluar.SetActive (false);
}
public void KeluarClick()
{
MenuPanel.SetActive (false);
Tentang.SetActive (false);
Keluar.SetActive (true);
}
public void NoClick()
{
MenuPanel.SetActive (true);
Tentang.SetActive (false);
Keluar.SetActive (false);
}
public void yesClick()
{
Application.Quit ();
}
public void BackMenuClick()
{
MenuPanel.SetActive (true);
Tentang.SetActive (false);
Keluar.SetActive (false);
MenuobJek.SetActive (false);
YellowTang.SetActive (true);
Koi.SetActive (false);
Discus.SetActive (false);
BlackLace.SetActive (false);
Clown.SetActive (false);
arwana.SetActive (false);
Ghost.SetActive (false);
molly.SetActive (false);
botana.SetActive (false);
kupu.SetActive (false);
}
}
Script mute:
using UnityEngine;
using System.Collections;
public class Mute : MonoBehaviour {
bool isMute;
public void MusicMute (){
if(isMute == true){
AudioListener.volume = 1;
isMute = false;
}
else {
isMute = true;
Script rotate :
using UnityEngine;
using System.Collections;
public class Rotate : MonoBehaviour {
private float rotationRate = 3.0f;
void Update () {
// get the user touch input
foreach (Touch touch in Input.touches) {
Debug.Log("Touching at: " + touch.position);
if (touch.phase == TouchPhase.Began) {
Debug.Log("Touch phase began at: " + touch.position);
} else if (touch.phase == TouchPhase.Moved) {
Debug.Log("Touch phase Moved");
transform.Rotate (touch.deltaPosition.y * rotationRate,
} else if (touch.phase == TouchPhase.Ended) {
Debug.Log("Touch phase Ended");
}
}
}
Script zoom:
using UnityEngine;
using System.Collections;
// setup this links in editor, just drag your cameras
from scene
public Camera leftCamera;
//public Camera rightCamera;
void OnGUI () {
hSliderValue = GUI.HorizontalSlider (new Rect (50, 50,
500, 300), hSliderValue, 0.0f, 10.0f);
}
void Update() {
leftCamera.transform.localPosition = new Vector3(
leftCamera.transform.localPosition.y,
hSliderValue,
leftCamera.transform.localPosition.y);
}
CURRICULUM VITAE
Nama Lengkap : Fahmi Aga Aditya
Nama akrab : Fahmi
Tanggal Lahir : 27 Juni 1992
Tempat Lahir : Kabanjahe, Sumatra Utara Jenis Kelamin : Laki-laki
Status Perkawinan : Belum Menikah
Agama : Islam
Alamat : Jalan dahlia 3 No.299 Komplek Pemda Tk.1, Medan
Nomor HP : 085275002732
E-mail : fahmi.aga@gmail.com
Training / Seminar / Workshop Tempat Sebagai Tahun
SENARAI Universitas Sumatera Utara Peserta 2014
Bulan/Tahun Organisasi/Kepanitiaan Posisi
2008–2009 Organisasi Pelajar Darul Arafah Anggota
Pendidikan Sekolah Tahun
SD SD Negeri 06, Kabanjahe–Sumatera Utara 1998 - 2004
SMP Madrasah Tsanawiyah Darul Arafah–Sumatera Utara 2004 - 2007
SMK Madrasah Aliyah Darul Arafah–Sumatera Utara 2007 - 2010
Universitas Institut Pertanian Bogor, Bogor–Jawa Barat 2010–2013