예제 #1
0
    public void Player_Attack(int orbIndex, int power, int angle)
    {
        OrbController orb = playerTeam[orbIndex];

        orb.power = power;
        orb.angle = angle;
        orb.FireInAngle();
    }
예제 #2
0
    public void executeAttack()
    {
        canvasGroup.alpha          = 0;
        canvasGroup.interactable   = false;
        canvasGroup.blocksRaycasts = false;
        hideCursor();

        currentOrb.power = (int)powerSlider.value;
        currentOrb.angle = (int)angleSlider.value;
        currentOrb.FireInAngle();

        StartCoroutine(runTurn());
    }