Tanoda
ServerClientStuff/SyncThis.cs
Go to the documentation of this file.
1using System.Collections;
2using System.Collections.Generic;
3using UnityEngine;
4
5public class SyncThis : MonoBehaviour
6{
7
8 public bool SyncChildren = false;
9 public bool AsGlobal = false;
10 void Awake()
11 {
12#if DANA
13 if (SyncChildren)
14 FindObjectOfType<TanodaServer>().SendPoseObjects.Add(gameObject);
15 else
16 FindObjectOfType<TanodaServer>().SendPoseObjectsNoChildren.Add(new TanodaServer.SendPose() { AsLocal = !AsGlobal, GO = gameObject }); ;
17
18#endif
19 }
20}