示例#1
0
 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> ();
 }
示例#2
0
 public void SetShotToPool(MovementController shot)
 {
     m_weaponController.SetObjectToPool (shot);
 }
示例#3
0
        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);
        }
示例#5
0
 public void SetShotToPool(MovementController shot)
 {
     m_weaponController.SetObjectToPool(shot);
 }
        public void DoMovement(MovementController movementController)
        {
            movementController.ThrustForce = ThrustForce;

            movementController.DoForce (-movementController.transform.up);
        }
示例#7
0
        public void DoMovement(MovementController movementController)
        {
            movementController.ThrustForce = Random.Range(MinThrustForce, MaxThrustForce);

            movementController.DoForce(Random.insideUnitCircle);
        }