public Cone AddCone(Vector2 size, int numSegment, float angle, Vector3 dir, int uvStretch, float maxFps, bool usedelta, AnimationCurve deltaAngle) { VertexSegment segment = GetVertices((numSegment + 1) * 2, numSegment * 6); Cone f = new Cone(segment, size, numSegment, angle, dir, uvStretch, maxFps); f.UseDeltaAngle = usedelta; f.CurveAngle = deltaAngle; return(f); }
public Cone AddCone(Vector2 size, int numSegment, float angle, Vector3 dir, int uvStretch, float maxFps, bool usedelta, AnimationCurve deltaAngle, EffectNode owner) { VertexSegment segment = GetVertices((numSegment + 1) * 2, numSegment * 6); Cone f = new Cone(segment, size, numSegment, angle, dir, uvStretch, maxFps); f.UseDeltaAngle = usedelta; f.CurveAngle = deltaAngle; f.Owner = owner; return f; }
//fence public void SetType(Vector2 size, int numSegment, float angle, Vector3 dir, int uvStretch, float maxFps, bool usedelta, AnimationCurve deltaAngle) { Type = 3; Cone = Owner.GetVertexPool().AddCone(size, numSegment, angle, dir, uvStretch, maxFps, usedelta, deltaAngle, this); }
//fence public void SetType(Vector2 size, int numSegment, float angle, Vector3 dir, int uvStretch, float maxFps, bool usedelta, AnimationCurve deltaAngle) { Type = 3; Cone = Owner.GetVertexPool().AddCone(size, numSegment, angle, dir, uvStretch, maxFps, usedelta,deltaAngle, this); }