示例#1
0
 public void RestoreCollider(PlayerCharacter player)
 {
     player.Collider.size   = colliderSize;
     player.Collider.offset = colliderOffset;
 }
示例#2
0
 public void RestoreActive(PlayerCharacter player)
 {
     player.gameObject.SetActive(active);
 }
示例#3
0
 public void RestoreFacing(PlayerCharacter player)
 {
     player.SetFacing(facing);
 }
示例#4
0
 public void RestoreSprite(PlayerCharacter player)
 {
     player.Sprite.sprite = sprite;
 }
示例#5
0
 /// <summary>
 /// Restore the transform the player was in.
 /// </summary>
 /// <param name="player">The player character.</param>
 public void RestoreTransform(PlayerCharacter player)
 {
     player.transform.position    = position;
     player.transform.eulerAngles = rotation;
     player.transform.localScale  = scale;
 }