Esempio n. 1
0
    /// <summary>
    /// 攻撃体勢に入る
    /// </summary>
    override protected void AttackPose()
    {
        SelectAttackId();

        var prefab = GetResource();

        MyAttackObj = Instantiate(prefab);
        MyAttackObj.Initialize(this.gameObject);


        IsAttacking = true;
        AnimationAttackPose();
        GroupCommand.NoticeEnemiesAttack();

        if (ieAttackMode != null)
        {
            StopCoroutine(ieAttackMode);
        }
        ieAttackMode = AttackStart(0.5f + attackIntervalTime);
        StartCoroutine(ieAttackMode);

        StopMove(2f + NextAttackInterval);
    }