public override void ActionOnMMOAgent(MMOAgent agent) { float difference = 1 - agent.WaterLevel; agent.AddReward(difference); agent.WaterLevel += difference; }
public override void ActionOnMMOAgent(MMOAgent agent) { agent.Die(); string step = MMOAcademy.instance.GetStepCount() + " "; Debug.Log(step + "Lava Death"); }
public override void ActionOnMMOAgent(MMOAgent agent) { float difference = 1 - agent.FoodLevel; difference = Mathf.Clamp(difference, 0, FoodStorage); agent.AddReward(difference); FoodStorage -= difference; agent.FoodLevel += difference; if (agent.CurrentWorldTile != null) { UpdateColor(); } }
public virtual void ActionOnMMOAgent(MMOAgent agent) { }