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