private Environment() { messagingControllersManager = new MessagingControllersManager(); pointerEventsController = new PointerEventsController(); memoryManager = new MemoryManager(); clipboard = Clipboard.Create(); }
void Awake() { if (i != null) { Utils.SafeDestroy(this); return; } i = this; }