20 lines
503 B
C#
20 lines
503 B
C#
|
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);
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
}
|