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(); }
private static void Init() { GetWindow <MinigameManager>(); harvestingGame = FindObjectOfType <HarvestingMinigame>(); }