public override void Init(AntInterop interop) { _interop = interop; _recognition = interop.GetProperty<RecognitionInterop>(); _physics = interop.GetProperty<PhysicsInterop>(); _interaction = interop.GetProperty<InteractionInterop>(); _physics.OnWaits += interop_Waits; _interop.Tick += interop_Tick; _recognition.Spots += interop_Spots; _physics.OnCollision += interop_Collided; _recognition.Smells += interop_Smells; _physics.OnTargetReched += interop_Reached; }
public override void Init(AntInterop interop) { _interop = interop; _recognition = interop.GetProperty <RecognitionInterop>(); _physics = interop.GetProperty <PhysicsInterop>(); _interaction = interop.GetProperty <InteractionInterop>(); _physics.OnWaits += interop_Waits; _interop.Tick += interop_Tick; _recognition.Spots += interop_Spots; _physics.OnCollision += interop_Collided; _recognition.Smells += interop_Smells; _physics.OnTargetReched += interop_Reached; }