Exemple #1
0
    public override void ActionOnMMOAgent(MMOAgent agent)
    {
        float difference = 1 - agent.WaterLevel;

        agent.AddReward(difference);
        agent.WaterLevel += difference;
    }
Exemple #2
0
    public override void ActionOnMMOAgent(MMOAgent agent)
    {
        agent.Die();
        string step = MMOAcademy.instance.GetStepCount() + " ";

        Debug.Log(step + "Lava Death");
    }
Exemple #3
0
    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();
        }
    }
Exemple #4
0
 public virtual void ActionOnMMOAgent(MMOAgent agent)
 {
 }