Exemplo n.º 1
0
    public void Init(float chargePercentage, ShipsAgent _agent = null)
    {
        maxRay        *= (1 + chargePercentage);
        growSpeedCoef *= (1 + chargePercentage);

        m_myAgent = _agent;
    }
Exemplo n.º 2
0
    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);
        }
    }