private void OnTriggerStay(Collider other) { if (other.tag == "DrillZone") { m_Drillable = true; m_DrillZoneController = other.GetComponentInParent <DrillZoneController>(); } }
private void OnTriggerExit(Collider other) { if (other.tag == "DrillZone") { m_Drillable = false; m_Indicator.color = m_DisableColor; } m_DrillZoneController = null; }
private void Start() { drillZoneController = GetComponentInChildren <DrillZoneController>(); }