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

        Invoke
            ("GetTired", Random.Range(TiredProbMin, TiredProbMax));
    }
예제 #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);
    }
예제 #3
0
    public override bool PostPerform()
    {
        GWorld.Instance.GetWorld().ModifyState("Treated", 1);
        Beliefs.ModifyState("IsCured", 1);     //For Patients
        Inventory.RemoveGameObject(Target);

        return(true);
    }