Exemplo n.º 1
0
 /// <summary>
 /// This class set up the initial values for each player stat
 /// </summary>
 protected override void InitStats()
 {
     base.InitStats();
     score = new Score();
     score.InitValue(0);
     health.InitValue(100);
     shield.InitValue(100);
     lives.InitValue(3);
 }
Exemplo n.º 2
0
 protected Gem(SceneManager mSceneMgr, Stat score)
 {
     this.mSceneMgr = mSceneMgr;
     this.score = score;
 }
Exemplo n.º 3
0
 /// <summary>
 /// This method initializes the stats objects, initial values are to be set in derived classes
 /// </summary>
 protected virtual void InitStats()
 {
     lives = new Stat();
     health = new Stat();
     shield = new Stat();
 }