void OnTriggerExit(Collider other) { Debug.Log("Trigger Exited"); //if a skyrise exits our trigger, it is no longer capturable if (other.gameObject.tag == "Skyrise Section") { SkyriseSection sr = other.gameObject.GetComponent <SkyriseSection>(); sr.isCapturable = false; FieldElementManager.ClearCapturableSkyrise(sr); } }
public void Release() { rb.isKinematic = false; isCaptured = false; FieldElementManager.ClearCapturableSkyrise(this); if (isScorable) { Score(); } }