public Particle create(string name, Vector2 position, Vector2 velocity) { Particle particle = null; if (name == "Particle") { particle = new Particle("particle", position, velocity, mediator); } else if (name == "ParticleBlue") { particle = new ParticleBlue("particleBlue", position, velocity, mediator); } return(particle); }
/// <summary> /// 作成 /// </summary> /// <param name="name"></param> /// <returns></returns> public Particle create(string name) { Particle particle = null; if (name == "Particle") { particle = new Particle(mediator); } else if (name == "ParticleBlue") { particle = new ParticleBlue(mediator); } return(particle); }