Exemple #1
0
 void Awake()
 {
     playerData2D = GameObject.FindWithTag("Player2D").GetComponent<PlayerData2D>();
     player2D = GameObject.FindWithTag("Player2D").GetComponent<Player2D>();
     lifes2D = 	   gameObject.GetComponent<Lifes2D>();
     scoreUpAnim =  gameObject.GetComponent<ScoreUpAnim>();
     comboText2D =  GameObject.Find("Combo2D").GetComponent<Text>();
     comboText3D =  GameObject.Find("Combo3D").GetComponent<Text>();
     ComboDraw ();
 }
Exemple #2
0
 void Awake()
 {
     playerData2D = GameObject.FindWithTag("Player2D").GetComponent <PlayerData2D>();
     player2D     = GameObject.FindWithTag("Player2D").GetComponent <Player2D>();
     lifes2D      = gameObject.GetComponent <Lifes2D>();
     scoreUpAnim  = gameObject.GetComponent <ScoreUpAnim>();
     comboText2D  = GameObject.Find("Combo2D").GetComponent <Text>();
     comboText3D  = GameObject.Find("Combo3D").GetComponent <Text>();
     ComboDraw();
 }