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