Skip to content
Snippets Groups Projects
Select Git revision
  • JS-based-scroll-rendering
  • master default
  • 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
24 results

StartServer_mctrl.cs

Blame
  • StartServer_mctrl.cs 718 B
    using System.Collections;
    using System.Diagnostics;
    using UnityEngine;
    using UnityEngine.Networking;
    using UnityEngine.SceneManagement;
    using static UIconfig;
    using static CommunicationEvents;
    
    public class StartServer_mctrl : MonoBehaviour
    {
    
        public GameObject ServerScriptGObj;
    
        // Start is called before the first frame update
        void Start()
        {
            StartCoroutine(ServerRoutine());
        }
    
        // Update is called once per frame
        void Update()
        {
    
        }
    
    
    
        IEnumerator ServerRoutine()
        {
            //Wait for 1 seconds
            yield return new WaitForSecondsRealtime(1f);
            if (ServerAutoStart == true)
            {
                ServerScriptGObj.SetActive(true);
    
            }
    
        }
    
    }