_TheStrongestSnail/TheStrongestSnail/Assets/Scripts/Scene_main/scene_main_init.cs

20 lines
503 B
C#
Raw Normal View History

2024-11-27 11:25:42 +08:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class scene_main_init : MonoBehaviour
{
[Header("<22><>Ϊ<EFBFBD><CEAA><EFBFBD>ڵ<EFBFBD><DAB5><EFBFBD>canvas")]
public Canvas _canvas;
[Header("<22><>Ҫ<EFBFBD><D2AA><EFBFBD>ɵ<EFBFBD>Ԥ<EFBFBD><D4A4><EFBFBD><EFBFBD>")]
public GameObject panelPrefab;
// Start is called before the first frame update
void Start()
{
GameObject newPanel= GameObject.Instantiate(panelPrefab,_canvas.transform);
//newPanel.transform.localScale = new Vector3(0.5f, 0.5f, 0.5f);
}
}