void OnUpdated() { if (updateMixin) { if (updateMixin.Check()) { updateMixin.Action(); } } }
void Update() { if (Input.GetKey(KeyCode.Space)) { if (fireWeapon.Check()) { fireWeapon.Action(); } } }