15 lines
397 B
C#
15 lines
397 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class SaveDynamicObjects : MonoBehaviour
|
|
{
|
|
public void Save()
|
|
{
|
|
//saving player position
|
|
var player = GameObject.FindGameObjectWithTag("Player");
|
|
player.GetComponent<PlayerPosition>().SavePosition();
|
|
player.GetComponent<Player>().SaveCheckpoint();
|
|
}
|
|
}
|