예제 #1
0
 private void _AttackMethod()
 {
     // assert characterState == Normal
     lastAttackTime = Time.time;
     character.Transit(CharacterState.Casting);
     character.SwitchCoroutine(StartCoroutine(AttackCoroutine()));
 }
    void _DeployMethodClient()
    {
        character.Perform("StopMovement", gameObject, null);
        character.Animator.SetTrigger("Deploy");
        character.Transit(CharacterState.Casting);
        character.SwitchCoroutine(StartCoroutine(_DeployAnimationDelay()));

        lastTrapTime = Time.time;
        trapCount   -= 1;
        if (isLocalPlayer && PlayerUIManager.singleton != null)
        {
            PlayerUIManager.singleton.UpdateItemCount(trapSkillIndex, trapCount);
            if (trapCount > 0)
            {
                PlayerUIManager.singleton.EnterCooldown(trapSkillIndex, trapCooldown);
            }
        }

        if (deployAudio)
        {
            deployAudio.Play();
        }
    }