public void SetCollisionAgent(ChaControl target) { if (danAgent == null || danOptions == null || !danTargetsValid) { return; } if (collisionAgent != null) { danAgent.RemoveDanColliders(collisionAgent); } collisionAgent = target; danAgent.AddDanColliders(collisionAgent); }
public void SetCollisionAgent(ChaControl target, bool kokanTarget) { if (danAgent == null || danOptions == null || !danTargetsValid) { return; } if (collisionAgent != null) { danAgent.RemoveDanColliders(collisionAgent); danAgent.RemoveTamaColliders(); } collisionAgent = target; if (kokanTarget) { danAgent.AddDanColliders(collisionAgent); } danAgent.AddTamaColliders(collisionAgent, false); }