// Use this for initialization void Start() { switch (this.whichType) { case WhichBlood.Role: RolePropertyInfo_Script = this.transform.parent.parent.GetComponent<RolePropertyInfo>(); break; case WhichBlood.Enemy: EnemyPropertyInfo_Script = this.transform.parent.parent.GetComponent<EnemyPropertyInfo>(); break; } }
// Use this for initialization void Start() { //載入角色資訊 this.roleInfo = this.GetComponent<RolePropertyInfo>(); }
// Use this for initialization void Start() { //載入角色資訊 this.roleInfo = this.GetComponent<RolePropertyInfo>(); this.isUsingSkill = false; //設定BoneAnimation this.boneAnimation = this.GetComponent<SmoothMoves.BoneAnimation>(); this.boneAnimation.RegisterColliderTriggerDelegate(WeaponHit); this.boneAnimation.RegisterUserTriggerDelegate(ShootEvent); GameManager.script.RegisterBoneAnimation(this.boneAnimation); //註冊BoneAnimation,GameManager統一管理 }