Пример #1
0
    private void DrawHarvestingGame()
    {
        GUILayout.BeginVertical("box");
        if (!harvestingGame)
        {
            harvestingGame = FindObjectOfType <HarvestingMinigame>();
            if (!harvestingGame)
            {
                GUILayout.Label("You don't have a harvesting game instance in your scene!");
                GUILayout.EndVertical();
                return;
            }
        }

        harvestingGame.PointerSpeed = EditorGUILayout.FloatField("Moving speed of pointer", harvestingGame.PointerSpeed);

        GUILayout.EndVertical();
    }
Пример #2
0
    private static void Init()
    {
        GetWindow <MinigameManager>();

        harvestingGame = FindObjectOfType <HarvestingMinigame>();
    }