Beispiel #1
0
    bool respawnAfterBallLeavesScene     = true; //used only if respawnAfterAnyDisappearingBall == false;

    private void Start()
    {
        SaveSpawnLocation();
        StartCoroutine(AutoSpawner());
        //BecomeListener
        if (respawnAfterAnyDisappearingBall)
        {
            EventsManager.AddDisappearingBallListener(SpawnBallWithSomeWaiting);
        }
        else if (respawnAfterBallLeavesScene)
        {
            EventsManager.AddReduceBallsLeftListener(SpawnBallWithSomeWaiting);
        }
    }