public void Tick() { timer -= Time.deltaTime; if (timer > 0 || Finished) { return; } var spawnPosition = PlayerInput.Instance.MouseRayHitPoint; var createdEssence = WorldSettings.EssenceFactory.CreateEssence(essence, spawnPosition); Finished = true; cachedTarget.AddEssence(createdEssence); }
public void Tick() { timer -= Time.deltaTime; if (timer > 0) { return; } var extractedEssence = player.ExtractEssence(); cachedTarget.AddEssence(extractedEssence); timer = infusionTime; Finished = true; }