public override void OnInspectorGUI() { DrawDefaultInspector(); ExploreCat cat = (ExploreCat)target; // type = (CatType)EditorGUILayout.EnumPopup(type); if (GUILayout.Button("LOVE PARTICLE")) { cat.loveParticles(); } if (GUILayout.Button("MAGIC PARTICLE")) { cat.Magic(); } if (GUILayout.Button("FADE")) { cat.FadeAndAvoidHit(); } if (GUILayout.Button("FLY")) { cat.FlyAndAvoidHit(); } if (GUILayout.Button("SET TEXTURE")) { cat.sideEffect = new SideEffect(Fx.Scared, SecondaryType.Arrow); cat.setEffect(); } }
private void alwaysResponse(ActionType action, ExploreCat cat) { switch (action) { case ActionType.Love: case ActionType.Comfort: case ActionType.Hug: cat.loveParticles(); break; } }