Beispiel #1
0
 public void destroyPlayerPodRacer()
 {
     // TODO : DETACH CAMERA ?
     Destroy(go_Podracer);
     m_Podracer   = null;
     cam_podracer = null;
 }
Beispiel #2
0
 public void generatePlayerPodracer()
 {
     go_Podracer = Instantiate(gop_Podracer, t_spawnPodracer.position, t_spawnPodracer.rotation);
     m_Podracer  = go_Podracer.GetComponent <SFX_Controller>();
     m_Podracer.m_gamemanager = this;
     m_Podracer.btnpower();
     cam_podracer         = go_Podracer.GetComponentInChildren <Camera>().gameObject;
     m_Podracer.m_tempete = m_tempete;
     // TODO : ATTACH CAMERA ?
 }