void InitNativeLight() { lightCache = GetComponent <Light>(); lightData = new SqLightData(); SetupLightData(); nativeID = AddNativeLight(lightCache.GetInstanceID(), lightData); }
static extern void UpdateNativeLight(int _nativeID, SqLightData _sqLightData);
static extern int AddNativeLight(int _instanceID, SqLightData _sqLightData);