示例#1
0
        private void Start()
        {
            // The rate that the launch force charges up is the range of possible forces by the max charge time.
            ChargeSpeed = (MaxLaunchForce - MinLaunchForce) / MaxChargeTime;

            tankAudio    = GetComponent <TankAudio>();
            tankMovement = GetComponent <TankMovement>();
        }
示例#2
0
 private void Awake()
 {
     rigidBody = GetComponent <Rigidbody>();
     tankAudio = GetComponent <TankAudio>();
 }