예제 #1
0
 public void EndGame(string type)
 {
     switch (type)
     {
     case "Death":
         mapControl.ResetMap();
         playerControl.InitializeValues();
         break;
     }
 }
예제 #2
0
 void OnTriggerStay2D(Collider2D other)
 {
     if (other.gameObject.layer == 11)
     {
         if (!other.GetComponent <MoveObject>().isMoving)
         {
             playerControl.stats.currFloor += 1;
             mapScript.ResetMap();
             gameControl.UpdateFog();
         }
     }
 }