예제 #1
0
    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();
        }
    }
예제 #2
0
 public void SetCubeInDict(CubeID.CubeColor color, TestCube script)
 {
     m_CubeList.Add(color, script);
     m_Pos.Add(script.gameObject);
 }
예제 #3
0
 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);
 }