/** * @param ammoType * @param refShipEnergy */ public bool Init(eAmmoTypes ammoType, ref CoreSystems.Energy refShipEnergy) { // reference to weapon GameObject itself HAVE TO be set from Awake () method of WeaponController script bool ret = (refObjectWeapon != null); ret = SetAmmoType(ammoType) && ret; SetReferenceShipSystemsEnergy(ref refShipEnergy); varShipRigidbodyVelocity = new Vector3(0.0f, 0.0f, 0.0f); isWeaponInitialized = ret; return(ret); }
/** * @param ref refSSE */ public void SetReferenceShipSystemsEnergy(ref CoreSystems.Energy refSSE) { refShipEnergy = refSSE; }
/** * @param Energy */ public void SetReferenceShipCoreEnergy(ref CoreSystems.Energy Energy) { refShipEnergy = Energy; }