/// <summary> /// Gets all references. /// </summary> void Start() { if (enemies == null) { enemies = new PlayerManager[0]; } networkLayer = GetComponent <TowerNetworkLayer>(); myshot = this.GetComponentInChildren <TowerShot>(); myshot.gameObject.SetActive(false); actualLife = totalLife; this.ActivateShield(); }
/// <summary> /// Gets all references. /// </summary> void Start() { if (enemies == null) { enemies = new PlayerManager[0]; } networkLayer = GetComponent<TowerNetworkLayer>(); myshot = this.GetComponentInChildren<TowerShot>(); myshot.gameObject.SetActive(false); actualLife = totalLife; this.ActivateShield(); }