Пример #1
0
 void Awake()
 {
     data          = GameSettings.Instance.GetAimPointData(type);
     shooter       = GetComponent <ShipShooterManager>();
     input         = GetComponent <PlayerControlInput>();
     currentAngles = new Vector3[aimPoints.Length];
 }
Пример #2
0
 void Awake()
 {
     movement = GetComponent <ShipMovement>();
     damage   = GetComponent <ShipDamage>();
     shooter  = GetComponent <ShipShooterManager>();
     positiveThrottle.fillAmount = 0;
     negativeThrottle.fillAmount = 0;
     positiveSteering.fillAmount = 0;
     negativeSteering.fillAmount = 0;
 }