protected void SetupSensoryCollider(SensoryCollider collider) { collider.OnSensorActivated += SensoryColliderActivated; collider.OnSensorDeactivated += SensoryColliderDeactivated; collider.Sense = SensoryTrigger.Sense.Player; }
protected void SetupSensoryCollider(SensoryCollider collider) { collider.OnSensorActivated += SensoryColliderActivated; collider.OnSensorDeactivated += SensoryColliderDeactivated; collider.Sense = m_Sense; if (m_Sense == Sense.Tag) { collider.Tag = m_SenseTag; } }
protected void SetupSensoryCollider(SensoryCollider collider) { collider.OnSensorActivated += SensoryColliderActivated; collider.OnSensorDeactivated += SensoryColliderDeactivated; collider.Sense = m_Sense; if (m_Sense == Sense.SpecificBricks) { collider.SpecificBricks = m_SpecificSenseBricks; } }
protected void SensoryColliderDeactivated(SensoryCollider collider) { m_ActiveColliders.Remove(collider); }
protected void SensoryColliderActivated(SensoryCollider collider, Collider _) { m_ActiveColliders.Add(collider); }
void SensoryColliderActivated(SensoryCollider collider, Collider activatingCollider) { m_LastActivatingCollider = activatingCollider; m_ActiveColliders.Add(collider); }
void SensoryColliderActivated(SensoryCollider collider) { m_ActiveColliders.Add(collider); }