Ejemplo n.º 1
0
    public void OnCatch(UBasketball ball)
    {
        if (ball == null)
        {
            Debug.LogError("Catch: unable to find ball.");
        }

        if (ball.m_castedSkill != null && ball.m_actor != null)
        {
            ball.m_actor.mStatistics.SkillUsageSuccess(ball.m_castedSkill.skill.id, true);
        }

        m_player.GrabBall(ball, true);
        m_player.eventHandler.NotifyAllListeners(PlayerActionEventHandler.AnimEvent.eCatch);
        ball.OnCatch();

        Debug.Log("OnCatch");
    }