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

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

        _difficulty = ScenarioManager.Instance.GetDifficultyInfo() as CerealDifficulty;
        UpdateCount ();
    }
예제 #2
0
파일: Box.cs 프로젝트: Danathus/ggj-2015-oj
    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;
    }