コード例 #1
0
ファイル: HenryController.cs プロジェクト: holdeg/HenryMod
        private void Awake()
        {
            this.characterBody = this.gameObject.GetComponent <CharacterBody>();
            this.childLocator  = this.gameObject.GetComponentInChildren <ChildLocator>();
            this.model         = this.GetComponentInChildren <CharacterModel>();
            this.tracker       = this.gameObject.GetComponent <HenryTracker>();

            Invoke("CheckWeapon", 0.2f);
        }
コード例 #2
0
 private void Awake()
 {
     this.characterBody = this.gameObject.GetComponent <CharacterBody>();
     this.childLocator  = this.gameObject.GetComponentInChildren <ChildLocator>();
     this.model         = this.gameObject.GetComponentInChildren <CharacterModel>();
     this.tracker       = this.gameObject.GetComponent <HenryTracker>();
     this.modelAnimator = this.gameObject.GetComponentInChildren <Animator>();
     this.weaponMode    = WeaponMode.Sword;
     this.currentEnergy = this.maxEnergy;
 }