Esempio n. 1
0
 // 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
 }
Esempio n. 2
0
 // Start is called before the first frame update
 void Start()
 {
     Writer.AddOnTextWriterStartDelegate(() => playing = true);
     Writer.AddOnTextWriterStopDelegate(() => playing  = false);
 }