void OnEnable()
 {
     DirectorGuy.RegisterSelf(this);
     Commander.RegisterActor(this, 0);
     Commander.RegisterActor(this, 1);
     Commander.RegisterActor(this, 2);
     _camera        = Camera.main;
     _startPosition = transform.position;
 }
예제 #2
0
 void OnEnable()
 {
     DirectorGuy.RegisterSelf(this);
     startPosition = transform.position;
 }