You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
490 B
17 lines
490 B
4 years ago
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using UnityEngine;
|
||
|
|
||
|
[RequireComponent(typeof(BaseGameObjInfo))]
|
||
|
public class StaticeObjAddToEntities : MonoBehaviour
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 预先需要存入实体管理器的物体,需要先生成一份ID
|
||
|
/// </summary>
|
||
|
void Start()
|
||
|
{
|
||
|
if (GetComponent<BaseGameObjInfo>().gameObjID != 0)
|
||
|
EntitiesManager.Instance.AddEntity(GetComponent<BaseGameObjInfo>().gameObjID, gameObject);
|
||
|
}
|
||
|
}
|