public override void OnInspectorGUI() { DrawDefaultInspector(); TestCube t = (TestCube)target; if (GUILayout.Button("Rotate")) { t.Rotate(); } if (GUILayout.Button("World to Local")) { t.WorldToLocal(); } if (GUILayout.Button("Init")) { t.Init(); } if (GUILayout.Button("Bottom Length")) { t.AddBottomLength(); } if (GUILayout.Button("Bottom Angle")) { t.AddBottomAngle(); } if (GUILayout.Button("Clear Conditions")) { t.ClearConditions(); } }
public void SetCubeInDict(CubeID.CubeColor color, TestCube script) { m_CubeList.Add(color, script); m_Pos.Add(script.gameObject); }
public void AddCubeToManager(CubeID.CubeColor i_Color, TestCube i_Cube) { m_Cubes.Add(i_Color, i_Cube); m_Postition.Add(i_Cube.gameObject.transform.position); }