示例#1
0
 public void OnWallHit()
 {
     // If our wall can take another hit change the wall sprite
     if (++WallStage < 4)
     {
         Anim.ChangeState("STAGE_" + WallStage);
     }
     // Otherwise disable the object
     else
     {
         gameObject.SetActive(false);
     }
 }