public void Init(float chargePercentage, ShipsAgent _agent = null) { maxRay *= (1 + chargePercentage); growSpeedCoef *= (1 + chargePercentage); m_myAgent = _agent; }
IEnumerator ShockLoad() { float precision = 0.1f; if (onLoadWave != null) { onLoadWave(); } WaitForSeconds wait = new WaitForSeconds(precision); ShipsAgent agent = GetComponent <ShipsAgent>(); while (true) { shockWaveCharge += precision; yield return(wait); } }