海淀天下城电子沙盘单机版
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.
 
 
 
 

16 lines
490 B

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);
}
}