protected void Initialize() { //this.Character = this.GetComponent<CharacterMecanim>(); if (this.GetComponent <CharacterMecanim>() == null) { this.gameObject.AddComponent <CharacterMecanim>(); } this.Character = this.GetComponent <CharacterMecanim>(); }
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>(); }
protected void Initialize() { this.Character = this.GetComponent<CharacterMecanim>(); }
protected void Initialize() { this.Character = this.GetComponent <CharacterMecanim>(); }
// Use this for initialization void Start() { cm = GetComponent<CharacterMecanim>(); winMsg.enabled = false; }
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); }