Пример #1
0
        public void SetCollisionAgent(ChaControl target)
        {
            if (danAgent == null || danOptions == null || !danTargetsValid)
            {
                return;
            }

            if (collisionAgent != null)
            {
                danAgent.RemoveDanColliders(collisionAgent);
            }

            collisionAgent = target;
            danAgent.AddDanColliders(collisionAgent);
        }
Пример #2
0
        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);
        }