Skip to content
Snippets Groups Projects
Select Git revision
  • 88faad5b7f391d330bdc1a4809c40b6d4edf9020
  • master default
  • JS-based-scroll-rendering
  • Paul_Marius_Level
  • Paul_Marius_2
  • Paul_Marius
  • Andi_Mark
  • be-UnityWebView
  • gitignoreFrameitServer
  • ZimmerBSc
  • Bugfix_StageLoading
  • stages
  • MAZIFAU_Experimental
  • tsc/coneworld
  • tsc/fact-interaction
  • marcel
  • MaZiFAU_TopSort
  • mergeHelper
  • zwischenSpeichern
  • tempAndrToMaster
  • SebBranch
  • 3.0
  • v2.1
  • v2.0
  • v1.0
25 results

StageBehaviour.cs

Blame
  • StageBehaviour.cs 699 B
    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    using static StageStatic;
    
    public class StageBehaviour : MonoBehaviour
    {
        void Start()
        {
            StageStatic.LoadInitStage(true, gameObject);
        }
    
        private void OnDestroy()
        {
            StageStatic.devel = false;
        }
    
        public void SetDevel(bool devel)
        {
            StageStatic.devel = devel;
            gameObject.UpdateTagActive("DevelopingMode", devel);
        }
    
        public void SetMode(bool create)
        {
            SetMode(create ? Mode.Create : Mode.Play);
        }
    
        public void SetMode(Mode mode, GameObject obj = null)
        {
            obj ??= gameObject;
            StageStatic.SetMode(mode, obj);
        }
    }