Esempio n. 1
0
    public static void DrawRoundEnd(VmodMonkeMapLoader.Behaviours.RoundEndActions roundEndActions, bool single = false)
    {
        Handles.color = (Color.green + Color.black) / 2;

        float size = 10.0f;

        foreach (var point in roundEndActions.ObjectsToEnable)
        {
            if (Handles.Button(point.transform.position, point.transform.rotation, size, size, Handles.SphereHandleCap))
            {
                MapDescriptorEditor.moveTo(point.transform);
            }
            HandleHelpers.Label(point.transform.position + Vector3.up * (size * .5f) + Vector3.up, new GUIContent(point.name), single);
        }

        Handles.color = (Color.red + Color.black) / 2;

        foreach (var point in roundEndActions.ObjectsToDisable)
        {
            if (Handles.Button(point.transform.position, point.transform.rotation, size, size, Handles.SphereHandleCap))
            {
                MapDescriptorEditor.moveTo(point.transform);
            }
            HandleHelpers.Label(point.transform.position + Vector3.up * (size * .5f) + Vector3.up, new GUIContent(point.name), single);
        }
    }
Esempio n. 2
0
        public static RoundEndActions _instance; // I'm sorry auros

        void Start()
        {
            _instance = this;
        }
Esempio n. 3
0
    public void OnSceneGUI()
    {
        VmodMonkeMapLoader.Behaviours.RoundEndActions targetRoundEndActions = (VmodMonkeMapLoader.Behaviours.RoundEndActions)target;

        DrawRoundEnd(targetRoundEndActions, true);
    }