示例#1
0
 void Awake()
 {
     player           = GameObject.Find("Player");
     playerController = player.GetComponent <PlayerController> ();
     spacebar         = GameObject.Find("PressSpaceBarText").GetComponent <Text> ();
     HUD           = GameObject.Find("HUDCanvas").GetComponent <HUDController> ();
     anim_gameOver = GameObject.Find("HUDCanvas").GetComponent <Animator> ();
     bgController  = BGObject.GetComponent <BGPlayerScript>();
 }
示例#2
0
 void Awake()
 {
     player = GameObject.Find ("Player");
     playerController = player.GetComponent<PlayerController> ();
     spacebar = GameObject.Find ("PressSpaceBarText").GetComponent<Text> ();
     HUD = GameObject.Find ("HUDCanvas").GetComponent<HUDController> ();
     anim_gameOver = GameObject.Find ("HUDCanvas").GetComponent<Animator> ();
     bgController = BGObject.GetComponent<BGPlayerScript>();
 }