using System.Collections; using System.Collections.Generic; using UnityEngine; public class CreateStaticObjID : MonoBehaviour { public static long staticGameObjID = 0; // Use this for initialization void Start () { EntitiesManager.Instance.AddEntity(staticGameObjID, gameObject); GetComponent().SetGameObjID(staticGameObjID++); } // Update is called once per frame void Update () { } }