public override void OnEnter() { WKStaticFunction.WKMessageLog("Enter HomeState"); CreatePlayerModal createPlayer = CreatePlayerModal.Instance(); createPlayer.OpenModal(); //HomeModal homeModal = HomeModal.Instance(); //homeModal.OpenModal(); //homeModal.OnRegisterModal(StartAction); base.OnEnter(); }
public static CreatePlayerModal Instance() { if (_Instance == null) { _Instance = GameObject.FindObjectOfType <CreatePlayerModal>(); if (_Instance == null) { WKStaticFunction.WKMessageError("there is no CreatePlayerModal in the system"); } } return(_Instance); }