private void InitBuildEngine() { RuntimeEngine = (uteMapEditorEngineRuntime)this.gameObject.AddComponent <uteMapEditorEngineRuntime>(); if (MAINPLATFORM) { RuntimeEngine.MAINPLATFORM = MAINPLATFORM; } else { Debug.Log("[RuntimeEngine] Main Platform is not set in the uteRuntimeBuilder Component. Make sure that you have something with colliders to build on."); RuntimeEngine.MAINPLATFORM = new GameObject("MAINPLATFORM_DUMMY"); } RuntimeEngine.RuntimeBuilder = this; }
private void Start() { isAboutToCancel = false; lastXfill = 0; lastZfill = 0; lastDistanceZ = 0; lastDistanceX = 0; heightStep = 1; isBuilding = false; lastDistance = new Vector3(-10000, -10000, -10000); mDummy = (GameObject)Resources.Load("uteForEditor/uteTcDummy"); mDummyMat = (Material)Resources.Load("uteForEditor/uteTcDummyMat"); #if UNITY_EDITOR uteMEE = this.gameObject.GetComponent <uteMapEditorEngine>(); UndoSystem = this.gameObject.GetComponent <uteUndoSystem>(); if (!uteMEE) { #endif uteMEER = this.gameObject.GetComponent <uteMapEditorEngineRuntime>(); #if UNITY_EDITOR } #endif }
private void Start() { isAboutToCancel = false; lastXfill = 0; lastZfill = 0; lastDistanceZ = 0; lastDistanceX = 0; heightStep = 1; isBuilding = false; lastDistance = new Vector3(-10000,-10000,-10000); mDummy = (GameObject) Resources.Load("uteForEditor/uteTcDummy"); mDummyMat = (Material) Resources.Load("uteForEditor/uteTcDummyMat"); #if UNITY_EDITOR uteMEE = this.gameObject.GetComponent<uteMapEditorEngine>(); UndoSystem = this.gameObject.GetComponent<uteUndoSystem>(); if(!uteMEE) { #endif uteMEER = this.gameObject.GetComponent<uteMapEditorEngineRuntime>(); #if UNITY_EDITOR } #endif }
private void InitBuildEngine() { RuntimeEngine = (uteMapEditorEngineRuntime) this.gameObject.AddComponent<uteMapEditorEngineRuntime>(); if(MAINPLATFORM) { RuntimeEngine.MAINPLATFORM = MAINPLATFORM; } else { Debug.Log("[RuntimeEngine] Main Platform is not set in the uteRuntimeBuilder Component. Make sure that you have something with colliders to build on."); RuntimeEngine.MAINPLATFORM = new GameObject("MAINPLATFORM_DUMMY"); } RuntimeEngine.RuntimeBuilder = this; }