Tanoda
ServerClientStuff/SyncThis.cs
Go to the documentation of this file.
1
using
System.Collections;
2
using
System.Collections.Generic;
3
using
UnityEngine
;
4
5
public
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
}
SyncThis
Definition:
ServerClientStuff/SyncThis.cs:6
SyncThis.AsGlobal
bool AsGlobal
Definition:
ServerClientStuff/SyncThis.cs:9
SyncThis.SyncChildren
bool SyncChildren
Definition:
ServerClientStuff/SyncThis.cs:8
TanodaServer
Definition:
TanodaServer.cs:22
UnityEngine
Definition:
HSVPicker/UtilityScripts/BoxSlider.cs:7
Source
Assets
Scripts
ServerClientStuff
SyncThis.cs
Generated by
1.9.3