22 lines
495 B
C#
22 lines
495 B
C#
using UnityEditor;
|
|
|
|
namespace Passer.CreatureControl {
|
|
|
|
[CustomEditor(typeof(Ant))]
|
|
public class Ant_Editor : Insect_Editor {
|
|
|
|
protected Ant ant;
|
|
|
|
public override void OnEnable() {
|
|
base.OnEnable();
|
|
|
|
this.ant = target as Ant;
|
|
}
|
|
|
|
protected override void InitTargets(Creature creature) {
|
|
TargetsRigInspector(creature, "InsectTargetRig");
|
|
creature.targetRig.MatchTo(ant);
|
|
}
|
|
}
|
|
|
|
} |