Beispiel #1
0
    void GetTired()
    {
        Beliefs.ModifyState("IsExhausted", 0);

        Invoke
            ("GetTired", Random.Range(TiredProbMin, TiredProbMax));
    }
Beispiel #2
0
    public override bool PostPerform()
    {
        GWorld.Instance.GetWorld().ModifyState("Waiting", 1);
        GWorld.Instance.AddPatient(this.gameObject);     //Adds Itself to the Waiting Que
        Beliefs.ModifyState("AtHospital", 1);

        return(true);
    }
Beispiel #3
0
    public override bool PostPerform()
    {
        GWorld.Instance.GetWorld().ModifyState("Treated", 1);
        Beliefs.ModifyState("IsCured", 1);     //For Patients
        Inventory.RemoveGameObject(Target);

        return(true);
    }