void Awake() { instance = this; selectionIndicatorGO = transform.GetChild(0).gameObject; SetSelectionSphereRadius(); skin = windowData.skin; texArrowFolded = windowData.texArrowFolded; texArrowUnfolded = windowData.texArrowUnfolded; inspectorWindow = windowData.inspectorWindow; hierarchyWindow = windowData.hierarchyWindow; SetActive(showOnStart); // DontDestroyOnLoad(gameObject); if (enableCameraOnStart) { useNavigationCamera.Value = true; EnableCamControl(); } wrapButton = new GUIStyle(skin.button); wrapButton.wordWrap = true; wrapTextField = new GUIStyle(skin.textField); wrapTextField.wordWrap = true; drawEnum = new DrawEnum(skin); RuntimeConsole.Register(this); refreshHierarchySearch = 1; refreshInspectorSearch = 1; }
void Awake() { RuntimeConsole.Register(this); doMath = Multiply; }