예제 #1
0
 public void OnClickButtonMask()
 {
     if (DragonBuffManager.Instance().IsBuffExist())
     {
         SceneManager.LoadScene(0);
     }
 }
예제 #2
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();
        }
    }
예제 #3
0
 void Awake()
 {
     _self = this;
     InitTable();
     SetPowerValue(DragonBuffManager.Instance().GetPowerValue());
 }
예제 #4
0
 void Update()
 {
     DragonBuffManager.Instance().Update(0);
 }
예제 #5
0
    void Start()
    {
        _Init();

        DragonBuffManager.Instance().OnStart();
    }
예제 #6
0
    void OnEnable()
    {
        Debug.Log("OnEnable " + m_nBuffID.ToString());

        DragonBuffManager.Instance().ChooseBuff(m_nBuffID);
    }