// Token: 0x06005E51 RID: 24145 RVA: 0x00210CF0 File Offset: 0x0020F0F0 public override void UpdateVisuals() { if (!this.gotReleventComponents) { return; } if (this.locked) { this.SetMeshMaterials(Teleport.instance.pointLockedMaterial, this.titleLockedColor); this.pointIcon = this.lockedIcon; this.animation.clip = this.animation.GetClip("locked_idle"); } else { this.SetMeshMaterials(Teleport.instance.pointVisibleMaterial, this.titleVisibleColor); TeleportPoint.TeleportPointType teleportPointType = this.teleportType; if (teleportPointType != TeleportPoint.TeleportPointType.MoveToLocation) { if (teleportPointType == TeleportPoint.TeleportPointType.SwitchToNewScene) { this.pointIcon = this.switchSceneIcon; this.animation.clip = this.animation.GetClip("switch_scenes_idle"); } } else { this.pointIcon = this.moveLocationIcon; this.animation.clip = this.animation.GetClip("move_location_idle"); } } this.titleText.text = this.title; }
// Token: 0x06005E57 RID: 24151 RVA: 0x0021104C File Offset: 0x0020F44C public void UpdateVisualsInEditor() { if (Application.isPlaying) { return; } this.GetRelevantComponents(); if (this.locked) { this.lockedIcon.gameObject.SetActive(true); this.moveLocationIcon.gameObject.SetActive(false); this.switchSceneIcon.gameObject.SetActive(false); this.markerMesh.sharedMaterial = Teleport.instance.pointLockedMaterial; this.lockedIcon.sharedMaterial = Teleport.instance.pointLockedMaterial; this.titleText.color = this.titleLockedColor; } else { this.lockedIcon.gameObject.SetActive(false); this.markerMesh.sharedMaterial = Teleport.instance.pointVisibleMaterial; this.switchSceneIcon.sharedMaterial = Teleport.instance.pointVisibleMaterial; this.moveLocationIcon.sharedMaterial = Teleport.instance.pointVisibleMaterial; this.titleText.color = this.titleVisibleColor; TeleportPoint.TeleportPointType teleportPointType = this.teleportType; if (teleportPointType != TeleportPoint.TeleportPointType.MoveToLocation) { if (teleportPointType == TeleportPoint.TeleportPointType.SwitchToNewScene) { this.moveLocationIcon.gameObject.SetActive(false); this.switchSceneIcon.gameObject.SetActive(true); } } else { this.moveLocationIcon.gameObject.SetActive(true); this.switchSceneIcon.gameObject.SetActive(false); } } this.titleText.text = this.title; this.ReleaseRelevantComponents(); }