public void OnClickButtonMask() { if (DragonBuffManager.Instance().IsBuffExist()) { SceneManager.LoadScene(0); } }
private void _Init() { int nSceneID = SceneManager.GetActiveScene().buildIndex; if (nSceneID == 0) { // lobby DragonBuffManager.Instance().Init(); DragonAchievementManager.Instance().Init(); } else if (nSceneID == 1) { // Ghost Game } else if (nSceneID == 2) { // Money DragonBuffManager.Instance().Init2(); } }
void Awake() { _self = this; InitTable(); SetPowerValue(DragonBuffManager.Instance().GetPowerValue()); }
void Update() { DragonBuffManager.Instance().Update(0); }
void Start() { _Init(); DragonBuffManager.Instance().OnStart(); }
void OnEnable() { Debug.Log("OnEnable " + m_nBuffID.ToString()); DragonBuffManager.Instance().ChooseBuff(m_nBuffID); }