예제 #1
0
    public void NextPlayerAction()
    {
        if (!IsMoving())
        {
            if (target != null)
            {
                LookToTarget();

                if (attackController.CanAttack())
                {
                    attackController.Attack(target);
                }
            }
        }

        if (nextOrbSkill == null)
        {
            OrbSkill OrbSkill = GetNextReadyOrbSkill();
            if (OrbSkill != null)
            {
                Debug.Log("next ready orb skill " + OrbSkill.name);
                nextOrbSkill = OrbSkill;
                attackController.CreateOrb(nextOrbSkill);
            }
        }
    }