Ejemplo n.º 1
0
    private void Update()
    {
        playerActor.SimulatonMove(speed, PT);

        if (PT == PlayerState.Attack)
        {
            playerActor.AttackOn();
        }
        else
        {
            playerActor.AttackOff();
        }

        if (isPlayer)
        {
            InputCheck();
        }

        if (!PlayerManager.instance.CheckUserList(Name) && Name != "")
        {
            Destroy(this.gameObject);
        }
    }