Пример #1
0
        // Use this for initialization
        void Start()
        {
            levels = transform.GetComponentsInChildren <LevelBehaviour>();
            LevelBehaviour preview = levels[0];

            foreach (var level in levels.Skip(1))
            {
                level.SetRotatorFor(preview);
                preview = level;
            }
            currentLevel = levels[0];
            currentLevel.SetPlatform(platform.transform);
        }
Пример #2
0
 void TransitionCompleted()
 {
     progressing = false;
     currentLevel.SetPlatform(platform.transform);
     completedTime = Time.fixedTime;
 }