public override void OnInspectorGUI() { DrawDefaultInspector(); PlatformerGenerator tilemapGenerator = (PlatformerGenerator)target; if (GUILayout.Button("Regenerate")) { tilemapGenerator.Regenerate(); } }
// Use this for initialization void Start() { theScoreManager = FindObjectOfType <ScoreManager> (); thePlatformGenerator = FindObjectOfType <PlatformerGenerator> (); theGameManager = FindObjectOfType <GameManager> (); }