39 lines
819 B
C#
39 lines
819 B
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
/*******************************************************************************
|
|
*Create By CG
|
|
*Function
|
|
*******************************************************************************/
|
|
namespace ZXK.GYJQR
|
|
{
|
|
public class Test : MonoBehaviour
|
|
{
|
|
public List<stepBase> list = new List<stepBase>();
|
|
private void Start()
|
|
{
|
|
Type type = Type.GetType("ZXK.GYJQR.step1");
|
|
stepBase instance = Activator.CreateInstance(type) as stepBase;
|
|
list.Add(instance);
|
|
}
|
|
}
|
|
|
|
public abstract class stepBase
|
|
{
|
|
|
|
}
|
|
|
|
public class step1 : stepBase
|
|
{
|
|
|
|
}
|
|
public class step2 : stepBase
|
|
{
|
|
|
|
}
|
|
public class step3 : stepBase
|
|
{
|
|
|
|
}
|
|
} |