Beispiel #1
0
 public override void OnInspectorGUI()
 {
     DrawDefaultInspector();
     if (GUILayout.Button("Add New Villager"))
     {
         VillageManager myTarget = (VillageManager)target;
         myTarget.AddNewWorker();
     }
 }