Пример #1
0
    public void Fuel(GameResource fromResource)
    {
        Debug.Log(fromResource != null);
        if (!Accepts(fromResource))
        {
            return;
        }

        ParticleControllerInstance.PlayResourceParticle(this, fromResource);

        switch (fromResource.ThisEffectType)
        {
        case ResourceEffectType.Fuel:
            CurFuel = CurFuel + fromResource.EffectIntensity;
            break;
        }

        HoveredResource = null;
    }