private void Start() { LevelLoading?.Invoke(this); Initialize(); LevelLoadingDone?.Invoke(this); StartGame(); }
private void Start() { if (LevelLoading != null) { LevelLoading.Invoke(this, new EventArgs()); } //Initialize(); if (LevelLoadingDone != null) { LevelLoadingDone.Invoke(this, new EventArgs()); } //StartGame(); }
private IEnumerator Start() { if (LevelLoading != null) { LevelLoading.Invoke(this, new EventArgs()); } yield return(null); Initialize(); if (LevelLoadingDone != null) { LevelLoadingDone.Invoke(this, new EventArgs()); } StartGame(); }
/*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(); }