void Awake() { //declare as singleton if (instance == null) { instance = this; } else if (instance != this) { Destroy(gameObject); } }
void Awake() { hyperManager = FourthDManager.instance; }