Пример #1
0
    public override void OnInspectorGUI()
    {
        DrawDefaultInspector();

        GameSchoolVRManager GSMgrScript = (GameSchoolVRManager)target;

        if (GUILayout.Button("Create Text Box"))
        {
            GSMgrScript.InstantiateTextInFrontOfCamera();
        }

        if (GUILayout.Button("Create Button"))
        {
            GSMgrScript.InstantiateButtonInFrontOfCamera();
        }
    }
 // Use this for initialization
 void Awake()
 {
     instance = this;
     GSText   = Resources.Load("Text") as GameObject;
 }