예제 #1
0
        private void Start()
        {
            LevelLoading?.Invoke(this);

            Initialize();

            LevelLoadingDone?.Invoke(this);

            StartGame();
        }
예제 #2
0
        private void Start()
        {
            if (LevelLoading != null)
            {
                LevelLoading.Invoke(this, new EventArgs());
            }

            //Initialize();

            if (LevelLoadingDone != null)
            {
                LevelLoadingDone.Invoke(this, new EventArgs());
            }
            //StartGame();
        }
예제 #3
0
        private IEnumerator Start()
        {
            if (LevelLoading != null)
            {
                LevelLoading.Invoke(this, new EventArgs());
            }
            yield return(null);

            Initialize();

            if (LevelLoadingDone != null)
            {
                LevelLoadingDone.Invoke(this, new EventArgs());
            }

            StartGame();
        }
예제 #4
0
        /*private void Start()
         * {
         *  Debug.Log("HI");
         *
         *  manager = GameObject.Find("Manager");
         *  manager.GetComponent<ManagerScript>().DeactivateGame();
         *  /*if (LevelLoading != null)
         *      Debug.Log("Loading.....");
         *      LevelLoading.Invoke(this, new EventArgs());
         *
         *  Initialize();
         *
         *  if (LevelLoadingDone != null)
         *      //Debug.Log("Done!");
         *      LevelLoadingDone.Invoke(this, new EventArgs());
         *
         *  StartGame();
         * }*/

        public void Begin()
        {
            Debug.Log("Im at Begin");
            if (LevelLoading != null)
            {
                LevelLoading.Invoke(this, new EventArgs());
            }

            Initialize();

            if (LevelLoadingDone != null)
            {
                //Debug.Log("Done!");
                LevelLoadingDone.Invoke(this, new EventArgs());
            }

            StartGame();
        }