Exemplo n.º 1
0
 public void CopyTo(SPlayerStats destination)
 {
     destination.hp              = hp;
     destination.gold            = gold;
     destination.roomNumber      = roomNumber;
     destination.position        = position;
     destination.facingDirection = facingDirection;
     destination.mesh            = mesh;
     destination.sword           = sword;
 }
Exemplo n.º 2
0
 private void Reset()
 {
     if (stats == null)
     {
         stats = ScriptableObject.CreateInstance("SPlayerStats") as SPlayerStats;
     }
     stats.hp              = statsDefault.hp;
     stats.gold            = statsDefault.gold;
     stats.position        = statsDefault.position;
     stats.facingDirection = statsDefault.facingDirection;
     playerStatsChangeEvent.Raise();
 }