loudixvmuniu/Assets/Test/CreateGeo.cs
2025-01-02 12:15:45 +08:00

43 lines
1.5 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using CG.UTility;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Playables;
/*******************************************************************************
*Create By CG
*Function
*******************************************************************************/
namespace Test
{
public class CreateGeo : MonoBehaviour
{
private string a = "注射器|孕酮阴道栓CIDR|长柄钳|氯前列烯醇|前列腺素PG|消毒纸巾|促卵泡生成素FSH|孕马血清促性腺激素PMSG|聚乙烯哔咯烷酮PVP|卡波前列腺素(甲基-PGF2α显微镜|载玻片|盖玻片|玻璃棒|恒温载物台|输精器|外套管|保定架|一次性长臂塑料手套|恒温水浴锅|镊子|细管剪|0.3%高锰酸钾|扩张棒|冲卵管|注射器|容器|冲卵液|青霉素|链霉素";
//public GameObject prefab;
//public Transform parnet;
//[ContextMenu("CreateGeo")]
//void CreateGeoM()
//{
// string[] aArray = a.Split("|");
// for (int i = 0; i < aArray.Length; i++)
// {
// GameObject b = Instantiate(prefab, parnet);
// b.name = aArray[i];
// b.transform.localPosition = new Vector3(i, 0, 0);
// }
//}
private void Update()
{
if (Input.GetKeyDown(KeyCode.Space))
{
transform.GetComponent<TimelineDirectorCtrl>().PlayForward();
}
}
//public SignalListener signalListener;
public void TestLog()
{
Debug.Log("测试触发器");
}
}
}