Skip to content
Snippets Groups Projects
StartServer_mctrl.cs 459 B
Newer Older
  • Learn to ignore specific revisions
  • using System.Collections;
    using UnityEngine;
    
    public class StartServer_mctrl : MonoBehaviour
    {
        public GameObject ServerScriptGObj;
    
    
        void Start()
        {
            StartCoroutine(ServerRoutine());
        }
    
        IEnumerator ServerRoutine()
        {
    
    MaZiFAU's avatar
    MaZiFAU committed
            ////Wait for 1 seconds
            //yield return new WaitForSecondsRealtime(1f);
            if (CommunicationEvents.ServerAutoStart)
    
    MaZiFAU's avatar
    MaZiFAU committed
    
            yield break;