Example #1
0
 protected void Initialize()
 {
     //this.Character = this.GetComponent<CharacterMecanim>();
     if (this.GetComponent <CharacterMecanim>() == null)
     {
         this.gameObject.AddComponent <CharacterMecanim>();
     }
     this.Character = this.GetComponent <CharacterMecanim>();
 }
Example #2
0
 protected void Initialize()
 {
     if (this.GetComponent <CharacterMecanim>() == null)
     {
         this.gameObject.AddComponent <CharacterMecanim>();
         this.gameObject.AddComponent <IKController>();
     }
     this.Character = this.GetComponent <CharacterMecanim>();
     this.IK        = this.GetComponent <IKController>();
 }
Example #3
0
 protected void Initialize()
 {
     this.Character = this.GetComponent<CharacterMecanim>();
 }
Example #4
0
 protected void Initialize()
 {
     this.Character = this.GetComponent <CharacterMecanim>();
 }
 // Use this for initialization
 void Start()
 {
     cm = GetComponent<CharacterMecanim>();
     winMsg.enabled = false;
 }
Example #6
0
    protected override void Initialize(BehaviorObject obj)
    {
        base.Initialize(obj);

        this.character = this.GetComponent<CharacterMecanim>();
        this.behavior = this.GetComponent<BehaviorMecanim>();

        if (this.MarkerHead == null)
            this.MarkerHead = 
                this.GetComponent<Animator>().GetBoneTransform(
                    HumanBodyBones.Head);
    }