// Token: 0x060076C1 RID: 30401 RVA: 0x002E6378 File Offset: 0x002E4578 private void CreateOrbital(PlayerController owner) { GameObject targetCursorPrefab = (!(this.CursorPrefab != null)) ? this.OrbitalFollowerPrefab.gameObject : this.CursorPrefab.gameObject; if (this.HasUpgradeSynergy && this.m_synergyUpgradeActive) { targetCursorPrefab = ((!(this.UpgradeCursorPrefab != null)) ? this.UpgradeOrbitalFollowerPrefab.gameObject : this.UpgradeCursorPrefab.gameObject); } this.m_extantOrbital = CursorGuonItem.CreateOrbital(owner, targetCursorPrefab, this.OrbitalFollowerPrefab != null, this); if (this.BreaksUponContact && this.m_extantOrbital) { SpeculativeRigidbody component = this.m_extantOrbital.GetComponent <SpeculativeRigidbody>(); if (component) { SpeculativeRigidbody speculativeRigidbody = component; speculativeRigidbody.OnRigidbodyCollision = (SpeculativeRigidbody.OnRigidbodyCollisionDelegate)Delegate.Combine(speculativeRigidbody.OnRigidbodyCollision, new SpeculativeRigidbody.OnRigidbodyCollisionDelegate(this.HandleBreakOnCollision)); } } if (this.BreaksUponOwnerDamage && owner) { owner.OnReceivedDamage += this.HandleBreakOnOwnerDamage; } }
// Token: 0x060001AF RID: 431 RVA: 0x0000EFD8 File Offset: 0x0000D1D8 public static void GuonInit(Action <CursorGuonItem, PlayerController> orig, CursorGuonItem self, PlayerController player) { orig(self, player); }
// Token: 0x060076C0 RID: 30400 RVA: 0x002E6318 File Offset: 0x002E4518 public static GameObject CreateOrbital(PlayerController owner, GameObject targetCursorPrefab, bool isFollower, CursorGuonItem sourceItem = null) { GameObject gameObject = UnityEngine.Object.Instantiate <GameObject>(targetCursorPrefab, owner.transform.position, Quaternion.identity); if (!isFollower) { CursonGuonController component = gameObject.GetComponent <CursonGuonController>(); component.Initialize(owner); } else { PlayerOrbitalFollower component2 = gameObject.GetComponent <PlayerOrbitalFollower>(); if (component2) { component2.Initialize(owner); } } return(gameObject); }