Exemple #1
0
    public void LightTorch(LightSource torch)
    {
        if (!torch)
        {
            return;
        }

        tFireMax = thisLightSource.health;

        if (tFireMax > healthTakePerTorchLight && torch.health < torch.maxHealth)
        {
            thisLightSource.health -= healthTakePerTorchLight;
            torch.health           += healthForTorchPerLight;
        }

        torch.Burn();
    }
Exemple #2
0
 void Start()
 {
     thisLightSource.Burn();
 }