24 lines
560 B
C#
24 lines
560 B
C#
using UnityEditor;
|
|
|
|
namespace Passer.CreatureControl {
|
|
|
|
[CustomEditor(typeof(Ant))]
|
|
public class Ant_Editor : Insect_Editor {
|
|
|
|
protected Ant ant;
|
|
|
|
public override void OnEnable() {
|
|
this.ant = target as Ant;
|
|
|
|
base.OnEnable();
|
|
}
|
|
|
|
protected override void InitTargets(Creature creature) {
|
|
if (creature.CheckTargetRig("InsectTargetRig")) {
|
|
EditorUtility.SetDirty(creature);
|
|
AssetDatabase.SaveAssets();
|
|
}
|
|
}
|
|
}
|
|
|
|
} |