예제 #1
0
        protected void SetupSensoryCollider(SensoryCollider collider)
        {
            collider.OnSensorActivated   += SensoryColliderActivated;
            collider.OnSensorDeactivated += SensoryColliderDeactivated;

            collider.Sense = SensoryTrigger.Sense.Player;
        }
예제 #2
0
        protected void SetupSensoryCollider(SensoryCollider collider)
        {
            collider.OnSensorActivated   += SensoryColliderActivated;
            collider.OnSensorDeactivated += SensoryColliderDeactivated;

            collider.Sense = m_Sense;
            if (m_Sense == Sense.Tag)
            {
                collider.Tag = m_SenseTag;
            }
        }
예제 #3
0
        protected void SetupSensoryCollider(SensoryCollider collider)
        {
            collider.OnSensorActivated   += SensoryColliderActivated;
            collider.OnSensorDeactivated += SensoryColliderDeactivated;

            collider.Sense = m_Sense;
            if (m_Sense == Sense.SpecificBricks)
            {
                collider.SpecificBricks = m_SpecificSenseBricks;
            }
        }
예제 #4
0
 protected void SensoryColliderDeactivated(SensoryCollider collider)
 {
     m_ActiveColliders.Remove(collider);
 }
예제 #5
0
 protected void SensoryColliderActivated(SensoryCollider collider, Collider _)
 {
     m_ActiveColliders.Add(collider);
 }
예제 #6
0
 void SensoryColliderActivated(SensoryCollider collider, Collider activatingCollider)
 {
     m_LastActivatingCollider = activatingCollider;
     m_ActiveColliders.Add(collider);
 }
예제 #7
0
 void SensoryColliderActivated(SensoryCollider collider)
 {
     m_ActiveColliders.Add(collider);
 }