示例#1
0
        // encapsulates the whole process to avoid forgetting to call Initialize()
        public SuperPower CreateSkyLaunch(ParticleSystem particle)
        {
            SuperPower power = new SkyLaunchSuperPower();

            power.Initialize(particle);
            return(power);
        }
 // encapsulates the whole process to avoid forgetting to call Initialize()
 public SuperPower CreateSkyLaunch(ParticleSystem particle)
 {
     SuperPower power = new SkyLaunchSuperPower();
     power.Initialize(particle);
     return power;
 }