protected override void Awake() { base.Awake(); name_string = "Basic Enemy"; //GameObject target = FindObjectOfType<GE_Treasure_Cart> ().gameObject; mover_behaviour = new BehaviourTrajectoryToTarget(this, null, null, speed); Behaviours.Add(mover_behaviour); damage_target_behaviour = new BehaviourDoDamageTarget(this, null, damage); Behaviours.Add(damage_target_behaviour); Behaviours.Add(new BehaviourHealthPoints(this, health)); Behaviours.Add(new BehaviourBounty(this, bounty_score, bounty_resource)); }
public override void GameElementUpgrade(GameElementBehaviour upgrade_behaviour) { BehaviourDoDamageTarget damage_behaviour = upgrade_behaviour as BehaviourDoDamageTarget; _damage_value = damage_behaviour._damage_value; }