internal static MeshRenderer CreateFlameMeshWithLight(float range, float intensity, Color color, Transform parent) { var mesh = Loc.GetGameController().MeshRendererFactory.CreateFlameMesh(parent); mesh.transform.localPosition += new Vector3(0, -0.2f, 0); Loc.GetVisualEffectController().CreateFireLight(mesh.transform, color, range, intensity, 1f); return(mesh); }
private void Initialize(Structure structure) { RefreshSpreadDelta(structure); InstantiateFlames(structure); if (structure.BaseFlammability > 150) { Loc.GetVisualEffectController().CreateFireLight(_flameMesh.transform, ColorExtensions.GetColorFromHex("F5810E"), 25, 25, 0.5f); } }
public override bool Done(CreatureData creature) { if (SubTasksComplete(creature)) { var wound = creature.GetWorstWound(); if (wound != null) { Loc.GetVisualEffectController().SpawnLightEffect(creature.Vector, ColorConstants.WhiteAccent, 2, 1, 1).Fades(); wound.Treated = true; wound.HealRate /= 2; } return(true); } return(false); }
public void Start() { _text = Loc.GetVisualEffectController().AddTextPrefab(gameObject); _meshRenderer = gameObject.GetComponent <MeshRenderer>(); }
internal override void StartBuff() { Loc.GetVisualEffectController().SpawnLightEffect(Owner.Vector, ColorConstants.WhiteBase, 2, 1, 1).Fades(); Owner.Log($"{Owner.Name} channels some magic to ."); }