예제 #1
0
 public void Start()
 {
     mover   = new TwoPointMover(transform, setup);
     move    = new MoveByController(charController, moveByControllerSetup);
     rot     = new RotateByMouse(IngameScene.Current.Cursor, transform, rotationSettings);
     shooter = new Shooter(bulletPrefab, shootingSpot, IngameScene.Current.BulletsFolder);
     bar.max = maxChargeShots;
     StartCoroutine(AutoFire(fireDelay));
     glow.SetTo(0);
 }
예제 #2
0
 void Start()
 {
     mover        = new MoveByController(charController, moveSetup);
     stateMachine = new PlayerStateMachine();
     stateMachine.Init(this);
 }