Initial commit

This commit is contained in:
Senad Uka
2020-01-11 07:32:13 +01:00
commit c43739e158
517 changed files with 456377 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
namespace PolyPerfect
{
[CustomEditor(typeof(WanderManager))]
public class WanderManagerEditor : Editor
{
public override void OnInspectorGUI()
{
//Load a Texture (Assets/Resources/Textures/texture01.png)
var mainTexture = Resources.Load<Texture2D>("ManagerLogo");
GUILayout.BeginHorizontal();
GUILayout.Label(mainTexture);
GUILayout.EndHorizontal();
WanderManager animalManager = (WanderManager)target;
if (!Application.isPlaying)
{
base.OnInspectorGUI();
return;
}
GUILayout.Space(10);
animalManager.PeaceTime = EditorGUILayout.Toggle("Peace Time", animalManager.PeaceTime);
GUILayout.Space(5);
if (GUILayout.Button("Kill 'Em All"))
{
animalManager.Nuke();
}
}
}
}