private void Start() { ResetState(0, 0); identity = GetComponent <NetIdentity>(); evtMixed = identity.RegisterEvent(OnMixed); evtDestroyIngredient = identity.RegisterEvent(OnDestroyIngredient); }
public void Start() { identity = GetComponentInParent <NetIdentity>(); if (identity != null) { evtCollision = identity.RegisterEvent(OnReportCollision); } }
public void Start() { identity = GetComponent <NetIdentity>(); if (identity != null) { evtCollision = identity.RegisterEvent(OnNarrativePlay); } }
private void Start() { identity = GetComponentInParent <NetIdentity>(); if (identity != null) { evtScroll = identity.RegisterEvent(OnScroll); } }
private void Start() { identity = GetComponentInParent <NetIdentity>(); if (identity != null) { evtCollisionAudio = identity.RegisterEvent(OnReceiveCollisionAudio); } }
public void Start() { identity = GetComponent <NetIdentity>(); if (identity != null) { evtCollision = identity.RegisterEvent(OnTriggerMusic); } }
public void Start() { audioSource = GetComponent <AudioSource>(); identity = GetComponent <NetIdentity>(); if (identity != null) { evtCollision = identity.RegisterEvent(OnPlayEasterEggAudio); } }
private void Start() { if (showDebug) { Debug.Log(base.name + " Started "); } identity = GetComponent <NetIdentity>(); evtHit = identity.RegisterEvent(OnHit); }
public void StartNetwork(NetIdentity identity) { if (showDebug) { Debug.Log(base.name + " Start Network "); } this.identity = identity; evtPlug = identity.RegisterEvent(OnPlug); }
private void Start() { if (showDebug) { Debug.Log(base.name + " Started "); } identity = GetComponentInParent <NetIdentity>(); if (identity != null) { evtImpact = identity.RegisterEvent(OnImpact); } }
private void OnEnable() { identity = GetComponentInParent <NetIdentity>(); evtPull = identity.RegisterEvent(OnPull); if (NetGame.isServer) { if (joint == null) { joint = CreateJoint(); } anchor = axis.TransformPoint(Vector3.forward); totalTravel = 0f; if (groundedIgnoreCollider != null) { IgnoreCollision.Ignore(base.transform, groundedIgnoreCollider); } } }
public void Start() { Human componentInParent = GetComponentInParent <Human>(); Ragdoll ragdoll = componentInParent.ragdoll; CollisionAudioSensor component = ragdoll.partLeftFoot.transform.GetComponent <CollisionAudioSensor>(); CollisionAudioSensor component2 = ragdoll.partRightFoot.transform.GetComponent <CollisionAudioSensor>(); leftHand = ragdoll.partLeftHand.transform; rightHand = ragdoll.partRightHand.transform; ragdoll.partLeftHand.sensor.onGrabTap = HandGrabLeft; ragdoll.partRightHand.sensor.onGrabTap = HandGrabRight; CollisionAudioSensor[] componentsInChildren = GetComponentsInChildren <CollisionAudioSensor>(); for (int i = 0; i < componentsInChildren.Length; i++) { componentsInChildren[i].id = -i; } identity = GetComponentInParent <NetIdentity>(); if (identity != null) { evtHandGrab = identity.RegisterEvent(OnHandGrab); } }
private void Awake() { identity = GetComponentInParent <NetIdentity>(); evtBeep = identity.RegisterEvent(OnBeep); }
private void Start() { identity = GetComponent <NetIdentity>(); evtHit = identity.RegisterEvent(OnHit); }
public void StartNetwork(NetIdentity identity) { this.identity = identity; evtPlug = identity.RegisterEvent(OnPlug); }
public void StartNetwork(NetIdentity identity) { this.identity = identity; evtCrack = identity.RegisterEvent(OnCrack); }
public void StartNetwork(NetIdentity identity) { this.identity = identity; evtBubble = identity.RegisterEvent(OnBubble); }
public void StartNetwork(NetIdentity identity) { this.identity = identity; evtFail = identity.RegisterEvent(OnFail); }