public void RestoreCollider(PlayerCharacter player) { player.Collider.size = colliderSize; player.Collider.offset = colliderOffset; }
public void RestoreActive(PlayerCharacter player) { player.gameObject.SetActive(active); }
public void RestoreFacing(PlayerCharacter player) { player.SetFacing(facing); }
public void RestoreSprite(PlayerCharacter player) { player.Sprite.sprite = sprite; }
/// <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; }