_xiaofang/xiaofang/Assets/yhj/scripts/PlayerInit.cs

28 lines
481 B
C#
Raw Permalink Normal View History

2024-12-20 14:38:57 +08:00
using System.Collections;
using System.Collections.Generic;
using Newtonsoft.Json.Bson;
using UnityEngine;
public class PlayerInit : MonoBehaviour
{
// Start is called before the first frame update
public GameObject playerpre;
void Start()
{
}
// Update is called once per frame
void Update()
{
}
void SetPlayer()
{
GameObject player = Instantiate(playerpre);
//player.transform.position = ;
}
}