Exemple #1
0
 void Start()
 {
     audio        = GetComponent <AudioSource>();
     apacheEffect = GetComponent <ApacheEffect>();
     player1      = GameObject.FindGameObjectWithTag("Player1").GetComponent <Player1>();
     player2      = GameObject.FindGameObjectWithTag("Player2").GetComponent <Player2>();
     player1.Activate();
     player2.Activate();
     Reset();
     StartCoroutine(StartGame());
 }
Exemple #2
0
 void Start()
 {
     ae = GameObject.FindGameObjectWithTag("GameController").GetComponent <ApacheEffect>();
 }