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; }
// 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; }