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