/// <summary> /// Searches for and binds a reference to the Body interface /// </summary> public void Initialize() { if (this.GetComponent <BodyMecanim>() == null) { this.gameObject.AddComponent <BodyMecanim>(); } this.Body = this.GetComponent <BodyMecanim>(); }
/// <summary> /// Searches for and binds a reference to the Body interface /// </summary> public void Initialize() { this.Body = this.GetComponent <BodyMecanim>(); this.Body.InteractionTrigger += this.OnInteractionTrigger; this.Body.InteractionStop += this.OnInteractionFinish; }
/// <summary> /// Searches for and binds a reference to the Body interface /// </summary> public void Initialize() { this.Body = this.GetComponent<BodyMecanim>(); this.Body.InteractionTrigger += this.OnInteractionTrigger; this.Body.InteractionStop += this.OnInteractionFinish; }
/// <summary> /// Searches for and binds a reference to the Body interface /// </summary> public void Initialize() { this.Body = this.GetComponent<BodyMecanim>(); this.Body.InteractionTrigger += this.OnInteractionTrigger; this.Body.InteractionStop += this.OnInteractionFinish; this.Behavior_tree_state = this.GetComponent<Behavior_Tree_Monitor> (); }