// Start is called before the first frame update void Start() { rl = GameObject.Find("TankSelector").GetComponent <TankSelection>(); if (rl.tankNumber == 1) { CreateMortar(); } if (rl.tankNumber == 2) { CreateScout(); } }
void Awake() { if (this.CompareTag("Selector") == true) { if (instance == null) { instance = this; DontDestroyOnLoad(gameObject); } else if (instance != this) { Destroy(gameObject); } } }
// Start is called before the first frame update void Start() { ts = GameObject.Find("TankSelector").GetComponent <TankSelection>(); ChangeImage(); }