protected override void Start() { base.Start(); // Initialize AI behaviour (this will launch the AI) this.behaviour = FlameThrowerEnemyAI.Initialize(this); Weapon[] weapons = GetComponentsInChildren <Weapon>(); weapon_1 = weapons[0]; weapon_2 = weapons[1]; weapon_1.Owned(this); weapon_2.Owned(this); }
protected override void Awake() { base.Awake(); instance = this; }