Beispiel #1
0
    protected void  HandleBallGathering()
    {
        //Handle the gathering of balls update.
        if (gathering)
        {
            Hands.Active = true;

            foreach (Ball b in Eyes.BallView)
            {
                if (!b.IsActive())
                {
                    Hands.PullToCenter(b.gameObject);
                }
            }

            if (connectorcontroller.GetBallsInStorage() >= commandedgather)
            {
                gathering = false;
            }
        }
        else
        {
            Hands.Active = false;
        }
    }