private void RefillLight(GameObject player) { if (player.tag == "Player") { BuffableEntity buffs = player.GetComponent <BuffableEntity>(); PlayerController control = player.GetComponent <PlayerController>(); buffs.AddBuff(new TimedLightBuff(lightBuff.duration, lightBuff, player.gameObject)); control.ReFillLight(); } }