示例#1
0
        //攻撃時
        public void MoveForAttack(BCharacterAttackerSingle attackCharacter, Vector3 targetPosition)
        {
            var centerPosition = (targetPosition - attackCharacter.transform.position) / 2;
            var newPosition    = attackCharacter.transform.position + centerPosition;

            switch (attackCharacter.selectAttackParameter.attackDistance)
            {
            case AttackDistance.近:
                StartCameraMoveUseiTween(newPosition, AttackDistance.近);
                break;

            case AttackDistance.中:
                StartCameraMoveUseiTween(newPosition, AttackDistance.中);
                break;

            case AttackDistance.遠:
                StartCameraMoveUseiTween(new Vector3(0, 0, 0), AttackDistance.遠);
                break;
            }

            nowCameraState = CameraState.Moving;
            SetCameraButtonActivity(false);
        }
 public void Awake()
 {
     singleAttack = GetComponent <BCharacterAttackerSingle>();
     moveAttack   = GetComponent <BCharacterAttackerMove>();
 }
 public void Awake()
 {
     singleAttack = GetComponent<BCharacterAttackerSingle>();
     moveAttack = GetComponent<BCharacterAttackerMove>();
 }