Example #1
0
 public PlayerUser(SceneGame sc, UserInformation u, CoroutineFunction<PlayerUser> mop, CoroutineFunction<PlayerUser> sop, PlayerInputMethod im)
 {
     info = u;
     game = sc;
     ipmet = im;
     SourceUser = u.SourceUser;
     MovingOperation = mop(this);
     ShotOperation = sop(this);
     MyKind = ObjectKind.Player;
     DamageKind = ObjectKind.Enemy | ObjectKind.EnemyBullet;
     CollisionRadius = u.CollisionRadius;
     GrazeRadius = CollisionRadius * 1.5;
     ShotStrength = u.ShotStrength;
     ShotInterval = 2;
     Operatable = true;
     HasCollision = true;
     GrazePoint = u.GrazePoints;
     Task.Run(() =>
     {
         Image = UserImageManager.GetUserImage(SourceUser);
         IsImageLoaded = true;
     });
 }
Example #2
0
 public OptionInformation(User u)
 {
     SourceUser = u;
     UserInformation = new UserInformation(u);
 }