Example #1
0
 // NOTE: DO NOT EXCESS MakeSad in the delegate or else you will get
 // a null reference exception
 public Action_Rebecca() : base(delegate(){
     RebeccaTinel n = GetComponent <RebeccaTinel>();
     if (actionName2 == "makeBusy")
     {
         //print ("wtf");
         n.setBusy(true);
         PlayerPrefs.SetString("Robby", "true");
     }
 }) {}
Example #2
0
    public override string Apply()
    {
        RebeccaTinel npc = GetComponent <RebeccaTinel>();

        if (query == "checkIsBusy")
        {
            if (npc.getBusy())
            {
                return("true");
            }
            else
            {
                return("false");
            }
        }
        return("true");
    }