public GameObjectInitMessage(GameObject go) { ttsid = go.GetComponent <TTSID>().id; position = go.transform.localPosition; rotation = go.transform.localRotation; parentTTSID = TTSID.Get(go.transform.parent); tag = go.tag; name = go.name; prefabID = TTSPrefabID.Get(go); }
public GameObjectTDataMessage(Transform target, List <TTS.TDataMessagePart> trackedData) { this.ttsid = target.GetComponent <TTSID>().id; this.parent = TTSID.Get(target.parent); this.trackedData = trackedData; }