// Token: 0x060006CA RID: 1738 RVA: 0x00025DC5 File Offset: 0x00023FC5 public DoorState(GhostAI ghostAI, GhostInteraction ghostInteraction, GhostInfo ghostInfo, PhotonObjectInteract obj) { this.ghostAI = ghostAI; this.ghostInteraction = ghostInteraction; this.ghostInfo = ghostInfo; this.door = obj.GetComponent <Door>(); }
public void MouthButton() { for (int i = 0; i < optionsImages.Length; i++) { optionsImages[i].CrossFadeAlpha(0, 0.25f, false); showingMenu = false; } if (currentItem != null) { DialogueManager.Instance.StartDialogue(currentItem.Mouth, currentItem.VoiceOversMouth); } if (currentDoor != null) { DialogueManager.Instance.StartDialogue(currentDoor.Mouth, currentDoor.VoiceOversMouth); } if (currentGhost != null && GhostInteraction.Saveable) { DialogueManager.Instance.StartDialogue(currentGhost.MouthSaveable, currentGhost.VoiceOversSaveable); currentGhost.Ghost.material = currentGhost.Happy; foreach (ParticleSystem p in currentGhost.Tears) { p.Stop(); } StartCoroutine(door.Open(openDoor.transform.rotation)); } else if (currentGhost != null) { DialogueManager.Instance.StartDialogue(currentGhost.Mouth, currentGhost.VoiceOversMouth); } currentItem = null; currentGhost = null; currentDoor = null; }
// Token: 0x06000653 RID: 1619 RVA: 0x0002314A File Offset: 0x0002134A public PoltergeistPower(GhostAI ghostAI, GhostInteraction ghostInteraction, LayerMask mask, PhotonObjectInteract[] props) { this.ghostInteraction = ghostInteraction; this.mask = mask; this.ghostAI = ghostAI; this.props = props; }
// Token: 0x06000645 RID: 1605 RVA: 0x00022D3F File Offset: 0x00020F3F public BansheePower(GhostAI ghostAI, GhostInteraction ghostInteraction, GhostAudio ghostAudio, NavMeshAgent agent, LayerMask mask) { this.ghostInteraction = ghostInteraction; this.ghostAudio = ghostAudio; this.ghostAI = ghostAI; this.agent = agent; this.mask = mask; }
public void ExamineButton() { for (int i = 0; i < optionsImages.Length; i++) { optionsImages[i].CrossFadeAlpha(0, 0.25f, false); showingMenu = false; } if (currentItem != null) { DialogueManager.Instance.StartDialogue(currentItem.Eyes, currentItem.VoiceOversEyes); } if (currentGhost != null) { DialogueManager.Instance.StartDialogue(currentGhost.Eyes, currentGhost.VoiceOversEyes); } if (currentDoor != null) { DialogueManager.Instance.StartDialogue(currentDoor.Eyes, currentDoor.VoiceOversEyes); } currentItem = null; currentGhost = null; currentDoor = null; }
//IEnumerator RemoveItem() { // yield return new WaitForSeconds(1); // currentItem = null; // currentGhost = null; // currentDoor = null; // yield break; //} public void InteractButton() { for (int i = 0; i < optionsImages.Length; i++) { optionsImages[i].CrossFadeAlpha(0, 0.25f, false); showingMenu = false; } if (currentItem != null && currentItem.Hand.Length >= 1) { DialogueManager.Instance.StartDialogue(currentItem.Hand, currentItem.VoiceOversHand); currentItem = null; return; } if (currentGhost != null && currentGhost.Hand.Length >= 1) { DialogueManager.Instance.StartDialogue(currentGhost.Hand, currentGhost.VoiceOversHand); currentGhost = null; return; } if (currentDoor != null && currentDoor.Hand.Length <= 0) { DialogueManager.Instance.StartDialogue(currentDoor.Hand, currentDoor.VoiceOversHand); currentDoor = null; SceneManager.LoadScene("LevelSelect"); return; } if (!currentItem.Name.Contains("in inventory")) { inventory.Add(new Item(currentItem.Name, currentItem.Eyes, currentItem.Mouth, currentItem.Hand, currentItem.HandAfterPickup, currentItem.Image, currentItem)); } currentItem.gameObject.tag = "Untagged"; currentItem.gameObject.GetComponent <GlowObject>().GlowColor = Color.black; Globals.FirstStoryProgress++; currentItem = null; }
public async Task LoadObjectsTask() { string curSceneName = SceneManager.GetActiveScene().name.ToLower(); while (!curSceneName.Contains("menu") && !curSceneName.Contains("new")) { await Task.Delay(4000); if (SceneManager.sceneLoaded != null) { Main.gameController = GameObject.FindObjectOfType <GameController>(); await Task.Delay(150); Main.levelController = GameObject.FindObjectOfType <LevelController>(); await Task.Delay(150); Main.levelSelectionManager = GameObject.FindObjectOfType <LevelSelectionManager>(); await Task.Delay(150); Main.walkieTalkie = GameObject.FindObjectOfType <WalkieTalkie>(); await Task.Delay(150); Main.handCamera = GameObject.FindObjectOfType <HandCamera>(); await Task.Delay(150); Main.inventoryManager = GameObject.FindObjectOfType <InventoryManager>(); await Task.Delay(150); Main.liftButton = GameObject.FindObjectOfType <LiftButton>(); await Task.Delay(150); Main.contract = GameObject.FindObjectOfType <Contract>(); await Task.Delay(150); Main.pCMenu = GameObject.FindObjectOfType <PCMenu>(); await Task.Delay(150); Main.exitLevel = GameObject.FindObjectOfType <ExitLevel>(); await Task.Delay(150); Main.ghostAI = GameObject.FindObjectOfType <GhostAI>(); await Task.Delay(150); Main.lightSwitch = GameObject.FindObjectOfType <LightSwitch>(); await Task.Delay(150); Main.light = GameObject.FindObjectOfType <Light>(); await Task.Delay(150); Main.dNAEvidences = Enumerable.ToList <DNAEvidence>(GameObject.FindObjectsOfType <DNAEvidence>()); await Task.Delay(150); Main.contracts = Enumerable.ToList <Contract>(GameObject.FindObjectsOfType <Contract>()); await Task.Delay(150); Main.items = Enumerable.ToList <InventoryItem>(GameObject.FindObjectsOfType <InventoryItem>()); await Task.Delay(150); Main.players = Enumerable.ToList <Player>(GameObject.FindObjectsOfType <Player>()); await Task.Delay(150); Main.photonView = GameObject.FindObjectOfType <PhotonView>(); await Task.Delay(150); Main.ghostInfo = GameObject.FindObjectOfType <GhostInfo>(); await Task.Delay(150); Main.deadPlayer = GameObject.FindObjectOfType <DeadPlayer>(); await Task.Delay(150); Main.player = GameObject.FindObjectOfType <Player>(); await Task.Delay(150); Main.rigidbody = GameObject.FindObjectOfType <Rigidbody>(); await Task.Delay(150); Main.itemSpawner = GameObject.FindObjectOfType <ItemSpawner>(); await Task.Delay(150); Main.ghostInteraction = GameObject.FindObjectOfType <GhostInteraction>(); await Task.Delay(150); //Main.baseController = GameObject.FindObjectOfType<BaseController>(); await Task.Delay(150); Main.ouijaBoard = GameObject.FindObjectOfType <OuijaBoard>(); await Task.Delay(150); Main.ouijaBoards = Enumerable.ToList <OuijaBoard>(GameObject.FindObjectsOfType <OuijaBoard>()); await Task.Delay(150); Main.keys = Enumerable.ToList <Key>(GameObject.FindObjectsOfType <Key>()); await Task.Delay(150); Main.ghosts = Enumerable.ToList <GhostAI>(GameObject.FindObjectsOfType <GhostAI>()); await Task.Delay(150); Main.serverManager = GameObject.FindObjectOfType <ServerManager>(); await Task.Delay(150); Main.torches = Enumerable.ToList <Torch>(GameObject.FindObjectsOfType <Torch>()); await Task.Delay(150); Main.ghostAudio = GameObject.FindObjectOfType <GhostAudio>(); await Task.Delay(150); Main.fuseBox = GameObject.FindObjectOfType <FuseBox>(); await Task.Delay(150); Main.doors = Enumerable.ToList <Door>(GameObject.FindObjectsOfType <Door>()); await Task.Delay(150); Main.lightSwitches = Enumerable.ToList <LightSwitch>(GameObject.FindObjectsOfType <LightSwitch>()); } } }
} // Dummy constructor public u091Cu091Fu0925u0924u0924u0922u0920u091Fu0920u0928u091E(GhostAI ghostAI, GhostInteraction ghostInteraction, GhostAudio ghostAudio, NavMeshAgent agent, LayerMask mask) { } // 0x0000000180E8A580-0x0000000180E8A610
} // Dummy constructor public u0920u0929u091Du091Eu0921u0925u0925u0923u0920u091Du091F(GhostAI ghostAI, GhostInteraction ghostInteraction, PhotonObjectInteract obj) { } // 0x0000000180C82610-0x0000000180C826B0
} // Dummy constructor public u091Bu0929u0922u0927u0925u0927u091Cu0921u091Du091Eu0920(GhostAI ghostAI, GhostInteraction ghostInteraction, PhotonObjectInteract obj) { } // 0x0000000180C296C0-0x0000000180C29760
} // Dummy constructor public u091Cu0926u091Eu091Fu091Bu0924u0926u091Au091Cu0927u0925(GhostAI ghost, GhostInteraction ghostInteraction) { } // 0x0000000180BC0950-0x0000000180BC09C0
// Token: 0x060006D8 RID: 1752 RVA: 0x00026EC8 File Offset: 0x000250C8 public GhostEvent_3(GhostAI ghost, GhostInteraction ghostInteraction) { this.ghost = ghost; this.ghostInteraction = ghostInteraction; }
public void ShowMenuOnMouseClick(bool overrule = false, ItemInteraction item = null) { if (Physics.Raycast(ray, out hit) && !overrule) { if (hit.collider.tag == "Interactable" && !showingMenu) { if (Input.GetMouseButtonDown(0)) { currentItem = hit.collider.gameObject.GetComponent <ItemInteraction>(); playerMoving = true; } } if (hit.collider.tag == "Ghost" && !showingMenu) { if (Input.GetMouseButtonDown(0)) { currentGhost = hit.collider.gameObject.GetComponent <GhostInteraction>(); playerMoving = true; } } if (hit.collider.tag == "Open Door" && !showingMenu) { if (Input.GetMouseButtonDown(0)) { currentDoor = hit.collider.gameObject.GetComponent <DoorInteraction>(); playerMoving = true; } } } if (overrule) { currentItem = item; showingMenu = true; middleImage.gameObject.SetActive(true); for (int i = 0; i < optionsImages.Length; i++) { canvasRenderers[i].SetAlpha(0); optionsImages[i].CrossFadeAlpha(1, 0.25f, false); MoveOptionsMenu(); } } /*if (hit.collider.tag == "NotInteractable") * { * for (int i = 0; i < optionsImages.Length; i++) * { * optionsImages[i].CrossFadeAlpha(0, 0.25f, false); * } * }*/ m_PointerEventData = new PointerEventData(m_EventSystem); m_PointerEventData.position = Input.mousePosition; List <RaycastResult> results = new List <RaycastResult>(); List <string> nameResults = new List <string>(); m_Raycaster.Raycast(m_PointerEventData, results); foreach (RaycastResult r in results) { nameResults.Add(r.gameObject.name); } if (!nameResults.Contains("MiddleImage")) { for (int i = 0; i < optionsImages.Length; i++) { optionsImages[i].CrossFadeAlpha(0, 0.25f, false); showingMenu = false; } //StartCoroutine(RemoveItem()); } //if(Input.GetMouseButtonDown(1)) { // currentItem = null; // for(int i = 0; i < optionsImages.Length; i++) { // optionsImages[i].CrossFadeAlpha(0, 0.25f, false); // showingMenu = false; // } //} }
public IEnumerator LoadObjectsTask() { yield return(new WaitForSeconds(0.15f)); Main.missionManager = GameObject.FindObjectOfType <MissionManager>(); yield return(new WaitForSeconds(0.15f));; Main.gameController = GameObject.FindObjectOfType <GameController>(); yield return(new WaitForSeconds(0.15f)); Main.levelController = GameObject.FindObjectOfType <LevelController>(); yield return(new WaitForSeconds(0.15f));; Main.levelSelectionManager = GameObject.FindObjectOfType <LevelSelectionManager>(); yield return(new WaitForSeconds(0.15f)); Main.walkieTalkie = GameObject.FindObjectOfType <WalkieTalkie>(); yield return(new WaitForSeconds(0.15f)); Main.handCamera = GameObject.FindObjectOfType <HandCamera>(); yield return(new WaitForSeconds(0.15f)); Main.inventoryManager = GameObject.FindObjectOfType <InventoryManager>(); yield return(new WaitForSeconds(0.15f)); Main.liftButton = GameObject.FindObjectOfType <LiftButton>(); yield return(new WaitForSeconds(0.15f)); Main.contract = GameObject.FindObjectOfType <Contract>(); yield return(new WaitForSeconds(0.15f)); Main.pCMenu = GameObject.FindObjectOfType <PCMenu>(); yield return(new WaitForSeconds(0.15f)); Main.exitLevel = GameObject.FindObjectOfType <ExitLevel>(); yield return(new WaitForSeconds(0.15f)); Main.ghostAI = UnityEngine.Object.FindObjectOfType <GhostAI>(); yield return(new WaitForSeconds(0.15f)); Main.lightSwitch = GameObject.FindObjectOfType <LightSwitch>(); yield return(new WaitForSeconds(0.15f)); Main.light = GameObject.FindObjectOfType <Light>(); yield return(new WaitForSeconds(0.15f)); Main.dNAEvidences = Enumerable.ToList <DNAEvidence>(GameObject.FindObjectsOfType <DNAEvidence>()); yield return(new WaitForSeconds(0.15f)); Main.contracts = Enumerable.ToList <Contract>(GameObject.FindObjectsOfType <Contract>()); yield return(new WaitForSeconds(0.15f)); Main.items = Enumerable.ToList <InventoryItem>(GameObject.FindObjectsOfType <InventoryItem>()); yield return(new WaitForSeconds(0.15f)); Main.players = Enumerable.ToList <Player>(GameObject.FindObjectsOfType <Player>()); yield return(new WaitForSeconds(0.15f)); if (Main.levelController != null) { Main.photonView = (Main.ghostAI.field_Public_PhotonView_0 ?? null); yield return(new WaitForSeconds(0.15f)); } Main.ghostInfo = GameObject.FindObjectOfType <GhostInfo>(); yield return(new WaitForSeconds(0.15f)); Main.deadPlayer = GameObject.FindObjectOfType <DeadPlayer>(); yield return(new WaitForSeconds(0.15f)); Main.player = GameObject.FindObjectOfType <Player>(); yield return(new WaitForSeconds(0.15f)); Main.rigidbody = GameObject.FindObjectOfType <Rigidbody>(); yield return(new WaitForSeconds(0.15f)); Main.itemSpawner = GameObject.FindObjectOfType <ItemSpawner>(); yield return(new WaitForSeconds(0.15f)); Main.ghostInteraction = GameObject.FindObjectOfType <GhostInteraction>(); yield return(new WaitForSeconds(0.15f)); //Main.baseController = GameObject.FindObjectOfType<BaseController>(); yield return(new WaitForSeconds(0.15f)); Main.ouijaBoard = GameObject.FindObjectOfType <OuijaBoard>(); yield return(new WaitForSeconds(0.15f)); Main.ouijaBoards = Enumerable.ToList <OuijaBoard>(GameObject.FindObjectsOfType <OuijaBoard>()); yield return(new WaitForSeconds(0.15f)); Main.keys = Enumerable.ToList <Key>(GameObject.FindObjectsOfType <Key>()); yield return(new WaitForSeconds(0.15f)); Main.ghosts = Enumerable.ToList <GhostAI>(GameObject.FindObjectsOfType <GhostAI>()); yield return(new WaitForSeconds(0.15f)); Main.serverManager = GameObject.FindObjectOfType <ServerManager>(); yield return(new WaitForSeconds(0.15f)); Main.torches = Enumerable.ToList <Torch>(GameObject.FindObjectsOfType <Torch>()); yield return(new WaitForSeconds(0.15f)); Main.ghostAudio = GameObject.FindObjectOfType <GhostAudio>(); yield return(new WaitForSeconds(0.15f)); Main.fuseBox = GameObject.FindObjectOfType <FuseBox>(); yield return(new WaitForSeconds(0.15f)); Main.doors = Enumerable.ToList <Door>(GameObject.FindObjectsOfType <Door>()); yield return(new WaitForSeconds(0.15f)); Main.lightSwitches = Enumerable.ToList <LightSwitch>(GameObject.FindObjectsOfType <LightSwitch>()); if (UnityEngine.Object.FindObjectOfType <Player>() != null) { Main.player = (UnityEngine.Object.FindObjectOfType <Player>() ?? null); yield return(new WaitForSeconds(0.15f)); Main.playerAnim = (Main.player.field_Public_Animator_0 ?? null); yield return(new WaitForSeconds(0.15f)); if (Main.playerAnim != null) { Main.boneTransform = (Main.playerAnim.GetBoneTransform((HumanBodyBones)10) ?? null); yield return(new WaitForSeconds(0.15f)); if (Main.boneTransform != null) { Main.light = (Main.boneTransform.GetComponent <Light>() ?? null); yield return(new WaitForSeconds(0.15f)); } } } yield return(null); yield break; }
} // Dummy constructor public u0926u0928u091Bu0922u0925u091Cu0920u091Bu091Du0923u091D(GhostAI ghostAI, GhostInteraction ghostInteraction, PhotonObjectInteract obj) { } // 0x0000000180F5D830-0x0000000180F5D8F0
// Token: 0x06000657 RID: 1623 RVA: 0x00023340 File Offset: 0x00021540 public WraithPower(GhostAI ghostAI, GhostInteraction ghostInteraction, NavMeshAgent agent) { this.ghostInteraction = ghostInteraction; this.ghostAI = ghostAI; this.agent = agent; }
// Token: 0x0600070D RID: 1805 RVA: 0x00029A28 File Offset: 0x00027C28 public SinkState(GhostAI ghostAI, GhostInteraction ghostInteraction, PhotonObjectInteract obj) { this.ghostAI = ghostAI; this.ghostInteraction = ghostInteraction; this.sink = obj.GetComponent <Sink>(); }
} // Dummy constructor public u091Eu0923u0925u091Cu0924u0929u0924u091Bu091Eu0923u091A(GhostAI ghostAI, GhostInteraction ghostInteraction) { } // 0x0000000180294750-0x00000001802947A0
// Token: 0x06000709 RID: 1801 RVA: 0x0002994C File Offset: 0x00027B4C public RadioState(GhostAI ghostAI, GhostInteraction ghostInteraction) { this.ghostAI = ghostAI; this.ghostInteraction = ghostInteraction; }
// Token: 0x06000711 RID: 1809 RVA: 0x00029A98 File Offset: 0x00027C98 public SoundState(GhostAI ghostAI, GhostInteraction ghostInteraction, PhotonObjectInteract obj) { this.ghostAI = ghostAI; this.ghostInteraction = ghostInteraction; this.sound = obj.GetComponent <Sound>(); }
} // Dummy constructor public u091Au0927u0929u0929u0922u0929u0924u0923u0922u0923u0927(GhostAI ghostAI, GhostInteraction ghostInteraction, PhotonObjectInteract obj) { } // 0x00000001818B1D90-0x00000001818B1E30
} // Dummy constructor public u0920u091Bu0925u0921u0923u0927u0925u0925u091Bu0925u091A(GhostAI ghostAI, GhostInteraction ghostInteraction) { } // 0x0000000180C7C830-0x0000000180C7C890
} // Dummy constructor public u091Bu091Du0921u0924u0928u091Eu091Bu0920u0928u0926u091B(GhostAI ghostAI, GhostInteraction ghostInteraction, PhotonObjectInteract obj) { } // 0x0000000180C1F440-0x0000000180C1F4E0
} // Dummy constructor public u0929u0926u0921u091Eu0929u091Fu091Bu0926u091Eu091Eu0925(GhostAI ghostAI, GhostInteraction ghostInteraction) { } // 0x0000000180294750-0x00000001802947A0
// Token: 0x0600064A RID: 1610 RVA: 0x00022F1C File Offset: 0x0002111C public JinnPower(GhostAI ghostAI, GhostInteraction ghostInteraction) { this.ghostInteraction = ghostInteraction; this.ghostAI = ghostAI; }
} // Dummy constructor public u0920u0920u0929u0924u091Fu0928u0926u091Eu0923u0921u091F(GhostAI ghostAI, GhostInteraction ghostInteraction, GhostInfo ghostInfo, PhotonObjectInteract obj) { } // 0x0000000180C7F090-0x0000000180C7F150
} // Dummy constructor public u0921u091Du091Bu091Eu0925u0926u0923u0923u091Du0923u0924(GhostAI ghostAI, GhostInteraction ghostInteraction) { } // 0x0000000180294750-0x00000001802947A0
// Token: 0x06000715 RID: 1813 RVA: 0x00029AF0 File Offset: 0x00027CF0 public TeleportObjectState(GhostAI ghostAI, GhostInteraction ghostInteraction, PhotonObjectInteract obj) { this.ghostAI = ghostAI; this.ghostInteraction = ghostInteraction; this.teleportObj = obj.GetComponent <TeleportableObject>(); }
// Token: 0x06000722 RID: 1826 RVA: 0x00029F0B File Offset: 0x0002810B public WindowKnockState(GhostAI ghostAI, GhostInteraction ghostInteraction, PhotonObjectInteract obj) { this.ghostAI = ghostAI; this.ghostInteraction = ghostInteraction; this.window = obj.GetComponent <Window>(); }
} // Dummy constructor public u0924u0927u091Eu0924u091Bu091Bu0921u091Au0921u091Cu0926(GhostAI ghostAI, GhostInteraction ghostInteraction, PhotonObjectInteract obj) { } // 0x0000000180B83440-0x0000000180B834E0