コード例 #1
0
        private void ShowHotspotGUI()
        {
            GUILayout.BeginVertical("Button");

            GUILayout.Label("Hotspots: " + sceneHotspots.Length + " found");
            if (GUILayout.Button("Select next"))
            {
                SetNextHotspot();
            }

            if (selectedHotspot != null)
            {
                GUILayout.Label("Selected Hotspot: " + selectedHotspot.GetName(0));

                GUILayout.BeginHorizontal();
                if (GUILayout.Button("Deselect"))
                {
                    selectedHotspot = null;
                    KickStarter.playerInteraction.SetActiveHotspot(null);
                }
                if (GUILayout.Button("Use"))
                {
                    selectedHotspot.RunUseInteraction();
                }
                if (GUILayout.Button("Examine"))
                {
                    selectedHotspot.RunExamineInteraction();
                }
                GUILayout.EndHorizontal();
            }

            GUILayout.EndVertical();
        }