// 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); }
// Token: 0x060000F6 RID: 246 RVA: 0x0000B5A8 File Offset: 0x000097A8 public static GameObject CreateOrbital(PlayerController owner, GameObject targetOrbitalPrefab, bool isFollower, PlayerOrbitalItem sourceItem = null) { GameObject gameObject = UnityEngine.Object.Instantiate <GameObject>(targetOrbitalPrefab, owner.transform.position, Quaternion.identity); bool flag = !isFollower; if (flag) { PlayerOrbital component = gameObject.GetComponent <PlayerOrbital>(); component.Initialize(owner); component.SourceItem = sourceItem; } else { PlayerOrbitalFollower component2 = gameObject.GetComponent <PlayerOrbitalFollower>(); bool flag2 = component2; if (flag2) { component2.Initialize(owner); } } return(gameObject); }