예제 #1
0
 void Start()
 {
     gCont     = GameObject.FindGameObjectWithTag("GameController").GetComponent <GameController>();
     Tank01    = GameObject.FindGameObjectWithTag("Player1").GetComponent <Player1>().Tank;
     Tank02    = GameObject.FindGameObjectWithTag("Player2").GetComponent <Player2>().Tank;
     GameLevel = Tank01.GameLevel;
 }
예제 #2
0
 // Start is called before the first frame update
 void Start()
 {
     Destroy(this.gameObject, Random.Range(10f, 15f));
     Tank01 = GameObject.FindGameObjectWithTag("Player1").GetComponent <Player1>().Tank;
     Tank02 = GameObject.FindGameObjectWithTag("Player2").GetComponent <Player2>().Tank;
 }