// Start is called before the first frame update void Start() { original = transform.position; // Cache our original position Writer.AddOnTextWriterStartDelegate(StartWorking); // Plug into the text writer start delegate Writer.AddOnTextWriterStopDelegate(StopWorking); // Plug into the text writer stop delegate }
// Start is called before the first frame update void Start() { Writer.AddOnTextWriterStartDelegate(() => playing = true); Writer.AddOnTextWriterStopDelegate(() => playing = false); }