Example #1
0
 public static CMyMgr GetInst()
 {
     if (mInstance == null)
     {
         mInstance = new CMyMgr();
     }
     return(mInstance);
 }
    public void RestartGame()
    {
        mpAlberto.SetState(CAlberto.STATE.IDLE);
        mpAlberto.DoAni();

        for (int i = 0; i < mEnemyList.Count; i++)
        {
            mEnemyList[i].transform.position = new Vector3(2 + i * 0.5f, 0, 0);
        }
        CMyMgr.GetInst().mScore = 0;
        mpTextScore.text = CMyMgr.GetInst().mScore.ToString();
    }
 public void AddScore()
 {
     CMyMgr.GetInst().mScore += 1;
     mpTextScore.text = CMyMgr.GetInst().mScore.ToString();
 }