Ejemplo n.º 1
0
 protected override void Start()
 {
     base.Start();
     if (!gameObject.name.Equals("UserDefinedTarget"))
     {
         OnInstantiate.Invoke(this);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 实例化指定类型对象
 /// </summary>
 /// <typeparam name="T">对象类型</typeparam>
 /// <param name="_defaultSelfActive">默认激活状态</param>
 /// <param name="_callback">回调</param>
 /// <param name="_extraParameter">额外参数</param>
 public void Instantiate <T>(bool _defaultSelfActive, Action <IAssetBundleResult> _callback, params object[] _extraParameter) where T : UnityEngine.Object
 {
     OnInstantiate?.Invoke(_defaultSelfActive, input, _callback, _extraParameter, typeof(T));
 }