예제 #1
0
 /// <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>();
 }
예제 #2
0
 /// <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;
 }
예제 #3
0
 /// <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> ();
 }