Beispiel #1
0
 void Awake()
 {
     if (instance == null)
     {
         instance    = this;
         key.enabled = false;
     }
     else
     {
         Destroy(gameObject);
     }
 }
Beispiel #2
0
 public static void HidePowerBar()
 {
     UIPowerBar.Hide();
     UICollectable.ChangeYPosition(-40f);
 }
Beispiel #3
0
 public static void HideKey()
 {
     UICollectable.HideKey();
 }
Beispiel #4
0
 public static void ShowPowerBar()
 {
     UIPowerBar.Show();
     UICollectable.ChangeYPosition(-130f);
 }
Beispiel #5
0
 public static void DisplayKey()
 {
     UICollectable.DisplayKey();
 }