Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
            }
        }
Esempio n. 3
0
    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);
    }
Esempio n. 4
0
 public void Start()
 {
     _text         = Loc.GetVisualEffectController().AddTextPrefab(gameObject);
     _meshRenderer = gameObject.GetComponent <MeshRenderer>();
 }
Esempio n. 5
0
    internal override void StartBuff()
    {
        Loc.GetVisualEffectController().SpawnLightEffect(Owner.Vector, ColorConstants.WhiteBase, 2, 1, 1).Fades();

        Owner.Log($"{Owner.Name} channels some magic to .");
    }