Beispiel #1
0
    public override void Reset()
    {
        Debug.Log("Bowl.Reset()!");

        _reverter.Revert ();
        _totalCaught = 0;
        _accum = new Vector3();

        _difficulty = ScenarioManager.Instance.GetDifficultyInfo() as CerealDifficulty;
        UpdateCount ();
    }
Beispiel #2
0
    public override void Reset()
    {
        Debug.Log("Box.Reset()!");
        foreach (Cereal cereal in Object.FindObjectsOfType<Cereal>()) {
            Destroy(cereal.gameObject);
        }
        _freeCereal.Clear ();

        _reverter.Revert ();
        _random.Revert ();
        _spawnTimeAccum = 0.0f;

        _difficulty = ScenarioManager.Instance.GetDifficultyInfo() as CerealDifficulty;
    }