コード例 #1
0
    // Use this for initialization
    void Start()
    {
        //載入敵人資訊
        this.enemyInfo = this.GetComponent<EnemyPropertyInfo>();

        //設定BoneAnimation
        this.boneAnimation = this.GetComponent<SmoothMoves.BoneAnimation>();
        GameManager.script.RegisterBoneAnimation(this.boneAnimation);   //註冊BoneAnimation,GameManager統一管理
    }
コード例 #2
0
 // 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;
     }
 }
コード例 #3
0
    // Use this for initialization
    void Start()
    {
        //載入敵人資訊
        this.enemyInfo = this.GetComponent<EnemyPropertyInfo>();

        //設定BoneAnimation
        this.boneAnimation = this.GetComponent<SmoothMoves.BoneAnimation>();
        this.boneAnimation.RegisterColliderTriggerDelegate(WeaponHit);
        this.boneAnimation.RegisterUserTriggerDelegate(ShootEvent);
        GameManager.script.RegisterBoneAnimation(this.boneAnimation);   //註冊BoneAnimation,GameManager統一管理
    }