void OnEnable() { if (!BoltEntityExtensions.IsAttached(gameObject.GetComponent <BoltEntity>())) { BoltNetwork.Attach(gameObject); } }
void OnEnable() { if (!BoltEntityExtensions.IsAttached(gameObject.GetComponent <BoltEntity>())) { //BoltNetwork.Attach(gameObject); } body.velocity = Vector3.zero; body.angularVelocity = Vector3.zero; }
void OnEnable() { if (!BoltEntityExtensions.IsAttached(gameObject.GetComponent <BoltEntity>())) { BoltNetwork.Attach(gameObject); } foreach (Transform child in transform) { child.localScale = shadow_scale; } rising = true; }
public override void SimulateOwner() { #else void Update() { #endif } void OnEnable() { if (automatically_start) { StartCoroutine(Despawn()); } if (!BoltEntityExtensions.IsAttached(gameObject.GetComponent <BoltEntity>())) { //BoltNetwork.Attach(gameObject); } } void OnDisable() { StopAllCoroutines(); }