コード例 #1
0
    public override void OnInspectorGUI()
    {
        DrawDefaultInspector();

        PlatformerGenerator tilemapGenerator = (PlatformerGenerator)target;

        if (GUILayout.Button("Regenerate"))
        {
            tilemapGenerator.Regenerate();
        }
    }
コード例 #2
0
 // Use this for initialization
 void Start()
 {
     theScoreManager      = FindObjectOfType <ScoreManager> ();
     thePlatformGenerator = FindObjectOfType <PlatformerGenerator> ();
     theGameManager       = FindObjectOfType <GameManager> ();
 }