// Use this for initialization void Start() { Global.Instance.SetMusic(Global.Instance.IsPlaySound, m_Music); DelegateDefine.Instance.OnGetCoin = OnGetCoin; m_SceneView = UISceneCtrl.Instance.Load(UISceneType.GameLevel).GetComponent <UIGameLevelSceneView>(); m_SceneView.SetCoin(Global.Instance.UserInfo.Coin); m_SceneView.SetHP(3); UIDispatcher.Instance.AddEventListen(ConstDefine.GameLevelScene_Pause, OnClickPauseBtn); m_CurFloor = -3; OnRoleJumpToNextFloor(); OnRoleJumpToNextFloor(); OnRoleJumpToNextFloor(); CreatePlayer(); }
private void OnRoleAddHp(int obj) { m_SceneView.SetHP(obj); }