public static void doDone(TauntAction actionObject) { var actor = SceneViews.instance.getCurFBScene().getActor(actionObject.objectID); if (actor != null && actor.animator != null) { actor.animator.SetBool("warmUp", false); actor.setAnimatorTrigger("taunt"); } }
void Awake() { OverHit = false; //aggro taunt overreact gameObject.AddComponent <AggroAction>(); gameObject.AddComponent <TauntAction>(); gameObject.AddComponent <OverreactAction>(); gameObject.AddComponent <AttackAction>(); aggroAction = gameObject.GetComponent <AggroAction>(); tauntAction = gameObject.GetComponent <TauntAction>(); overreactAction = gameObject.GetComponent <OverreactAction>(); attackAction = gameObject.GetComponent <AttackAction>(); StaticIngameData.playerAction = this; OverreactTimer = GameObject.FindGameObjectWithTag("OverreactTimer"); OverreactTimer.SetActive(false); }