public static Player Create(Entity cursor_entity, ref AtomicFloatResource float_resource) { var player = new Player { pitch_acceleration_ = 0f, pitch_velocity_ = 0f, pitch_ = 0f, roll_ = 0f, roll_target_ = 0f, cursor_forceXY_ = new float2(0f, 0f), cursor_entity_ = cursor_entity, fire_bullet_time_ = CV.MaxValue, fire_bullet_count_ = 0, life_ = float_resource.Create(PLAYER_INITIAL_LIFE), }; return(player); }
public static Enemy Create(ref AtomicFloatResource float_resource) { return(new Enemy { life_ = float_resource.Create(5f), }); }