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 (); }
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(); }