protected override void OnUpdate() { /*if(species.IsWithinReach(roamGoal) || giveUp <= 0){ * roamGoal = Roam(); * wait = Random.Range(0,Random.Range(0,5)); * giveUp = Random.Range(0,10); * }else if(wait > 0){ * wait -= Time.deltaTime; * }else{ * move.PathTo(roamGoal); * giveUp -= Time.deltaTime; * }*/ /*if(delay <= 0){ * GameObject target = species.targetObject; * PropertyTracker prop = target.GetComponent<PropertyTracker>(); * Debug.Log("I've targeted a f*****g " + target); * int my = Random.Range(0,(int)myProp["strength"]); * int opp = Random.Range(0,(int)prop["strength"]); * * if(my > opp){ * prop["health"] = (int)prop["health"] - (int)myProp["strength"]; * } * delay = (float)myProp["attackSpeed"]; * * }else { * delay -= Time.deltaTime; * }*/ species.Attack(species.targetObject.GetComponent <Species>()); }