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