virtual public void ReceiveFireDamage(float tickLength, float damageAmount, float totalDuration) { Debug.Log("Starting burn for " + damageAmount + " damage per tick"); Debug.Log("Duration is " + totalDuration); //StartCoroutine(TakeFireDamageOverTime(tickLength, damageAmount, totalDuration)); if (currBurn == null) { currBurn = Instantiate(burningeffectPrefab, transform); currBurn.initialize(tickLength, damageAmount, totalDuration); } else { currBurn.addBurning(totalDuration); } }