Beispiel #1
0
 private void Awake()
 {
     if (AimData == null)
     {
         AimData = new AimingData();
     }
 }
Beispiel #2
0
 void Start()
 {
     player           = GetComponentInParent <PlayerController> ();
     weaponController = GetComponent <WeaponController> ();
     player.SwitchWeapon(weaponController);
     props   = weaponController.AimingProps;
     aimData = weaponController.AimData;
 }
Beispiel #3
0
 public void SetAimData(AimingData newAimData)
 {
     AimData = newAimData;
 }