public static void AddEntity(DSBeamEntity e) { if (!s_instance.enabled) { return; } s_instance.m_entities.Add(e); }
public static DSBeamEntity AddEntity(Vector3 pos, Vector3 dir, float speed = 20.0f, float fade_speed = 0.025f, float lifetime = 2.0f, float scale = 1.0f) { if (!s_instance.enabled) { return(null); } DSBeamEntity e = new DSBeamEntity { position = pos, direction = dir, speed = 20.0f, fade_speed = fade_speed, lifetime = lifetime, scale = scale, length = 0.0f, }; s_instance.m_entities.Add(e); return(e); }
public static DSBeamEntity AddEntity(Vector3 pos, Vector3 dir, float speed = 20.0f, float fade_speed = 0.025f, float lifetime = 2.0f, float scale = 1.0f) { if (!s_instance.enabled) return null; DSBeamEntity e = new DSBeamEntity { position = pos, direction = dir, speed = 20.0f, fade_speed = fade_speed, lifetime = lifetime, scale = scale, length = 0.0f, }; s_instance.m_entities.Add(e); return e; }
public static void AddEntity(DSBeamEntity e) { if (!s_instance.enabled) return ; s_instance.m_entities.Add(e); }