public override void OnTrigger(GameObject source) { if (!triggerOff) { target.On(source); } else { target.Off(source); } }
public void On(GameObject origin, bool persistent) { target.On(origin); persistentOn = persistent; this.origin = origin; }