Exemplo n.º 1
0
    void MoveAgain()
    {
        if (ballSpawner.TempColor == MyColor && ballSpawner.tempIndex == ballSpawner.CheckListPos(this))
        {
            var BalListPos = ballSpawner.CheckListPos(this);
            ballSpawner.CheckForTripples(MyColor, BalListPos);
        }

        Moving = true;

        destination       = Waypoints[Index].transform.position;
        Agent.destination = destination;
        Speed             = DefaultSpeed;
    }