/// <summary> /// Add distortion field with bumpy skin /// </summary> /// <param name="moldOwner"></param> /// <param name="life"></param> /// <param name="maxSize"></param> /// <returns></returns> public static Distortion AddWithBump(GameThing thing, bool doSound) { float life = 0.4f; Vector3 maxSize = new Vector3(1.2f, 1.2f, 1.2f); Distortion lie = Add(thing, life, maxSize); lie.EnableBump(true); if (doSound) { Foley.PlayPaste(); } return(lie); }
/// <summary> /// Add distortion field with bumpy skin and electic glow /// </summary> /// <param name="moldOwner"></param> /// <param name="life"></param> /// <param name="maxSize"></param> /// <returns></returns> public static Distortion AddWithGlow(GameThing thing, bool doSound) { float life = (float)Brain.kStunSeconds; Vector3 maxSize = new Vector3(1.2f, 1.2f, 1.2f); Distortion lie = Add(thing, life, maxSize); lie.EnableBump(true); lie.EnableGlow(true); if (doSound) { Foley.PlayRepeatingLaser(thing); } return(lie); }