Exemple #1
0
    void Awake()
    {
        instance = this;

        // Setup background
        opaqueBackground.sprite      = rightSideUpImage;
        transparentBackground.sprite = upsideDownImage;
    }
Exemple #2
0
 void EndAnimation(WorldFlipper flipper)
 {
     if ((StageState.Instance != null) && (StageState.Instance.LastPortal != null))
     {
         StageState.Instance.Respawn();
     }
     flipStarted = false;
     StageState.Instance.IsPaused = false;
 }
Exemple #3
0
 void OnDestroy()
 {
     instance = null;
 }
Exemple #4
0
 void StartAnimation(WorldFlipper flipper)
 {
     StageState.Instance.IsPaused = true;
 }