void Start() { // Get input controller. m_inputController = InputFactory.GetCurrentInputController (); // Get movement controller. m_movement = GetComponent<MovementController>(); // Get weapon controller (in children). m_weaponController = GetComponentInChildren<PlayerWeaponController> (); // Get thrust particles (in children). m_thrustEffect = GetComponentInChildren<ParticleSystem> (); }
public void SetShotToPool(MovementController shot) { m_weaponController.SetObjectToPool (shot); }
public void DoMovement(MovementController movementController) { movementController.ThrustForce = ThrustForce; movementController.DoForce(movementController.transform.up); }
public void DoMovement(MovementController movementController) { movementController.ThrustForce = Random.Range(MinThrustForce, MaxThrustForce); movementController.DoForce (Random.insideUnitCircle); }
public void SetShotToPool(MovementController shot) { m_weaponController.SetObjectToPool(shot); }
public void DoMovement(MovementController movementController) { movementController.ThrustForce = ThrustForce; movementController.DoForce (-movementController.transform.up); }
public void DoMovement(MovementController movementController) { movementController.ThrustForce = Random.Range(MinThrustForce, MaxThrustForce); movementController.DoForce(Random.insideUnitCircle); }