コード例 #1
0
 public void FromSave()
 {
     PlayerStruct = new PlayerStruct()
     {
         LifeCount = _model.LifeCount,
         Speed     = _model.Speed
     };
     Position = _playerTransform.position;
     Rotation = _playerTransform.rotation;
 }
コード例 #2
0
ファイル: SaveEnemyData.cs プロジェクト: Scheshi/SharikGame
 public void FromSave()
 {
     EnemyStruct = new EnemyStruct()
     {
         Damage = _model.Damage,
         Speed  = _model.Speed
     };
     Position = _enemyTransform.position;
     Rotation = _enemyTransform.rotation;
 }
コード例 #3
0
ファイル: SaveEnemyData.cs プロジェクト: Scheshi/SharikGame
 public EnemySaveData(EnemyModel model, Transform transform)
 {
     _enemyTransform = transform;
     _model          = model;
     EnemyStruct     = new EnemyStruct()
     {
         Damage = _model.Damage,
         Speed  = _model.Speed
     };
     Position = transform.position;
     Rotation = transform.rotation;
 }
コード例 #4
0
 public PlayerSaveData(string name, PlayerModel model, Transform transform)
 {
     UserName         = name;
     _playerTransform = transform;
     _model           = model;
     PlayerStruct     = new PlayerStruct()
     {
         LifeCount = _model.LifeCount,
         Speed     = _model.Speed
     };
     Position = transform.position;
     Rotation = transform.rotation;
 }
コード例 #5
0
 public PlayerSaveData(PlayerSaveData data)
 {
     Position     = data.Position;
     Rotation     = data.Rotation;
     PlayerStruct = data.PlayerStruct;
 }
コード例 #6
0
ファイル: SaveEnemyData.cs プロジェクト: Scheshi/SharikGame
 public EnemySaveData(EnemySaveData data)
 {
     Position    = data.Position;
     Rotation    = data.Rotation;
     EnemyStruct = data.EnemyStruct;
 }