void TriggerEnter(int ent) { CorutineManager.StartCorutine(EndProcess()); /*SignalManager<StopMoveSignal>.Instance.SendSignal(new StopMoveSignal(true)); * * * int player = PlayerGroup.GetEntitiesArray()[0]; * int end_trigger = EndGameTriggerGroup.GetEntitiesArray()[0]; * * * FPSCmp fpsCmp = Storage.GetComponent<FPSCmp>(player); * EndGameTriggerCmp triggerCmp = Storage.GetComponent<EndGameTriggerCmp>(end_trigger); * * * triggerCmp.GameNameAnim.Play(); * * * * triggerCmp.endGamePanelAnim.Play(); * * * //triggerCmp.TitleHolder.SetActive(true); * * //int title = TitleGroup.GetEntitiesArray()[0]; * //TitlesCmp titlesCmp = Storage.GetComponent<TitlesCmp>(title); * //titlesCmp.gameObject.SetActive(true); * * fpsCmp.controller.enabled = false; * //fpsCmp.transform.position = triggerCmp.SpawnPoint.transform.position; * //fpsCmp.transform.rotation = Quaternion.Euler(0, 180, 0); * * /*Debug.Log("Pos до = " + triggerCmp.TitleHolder.transform.position); * Debug.Log("SpawnPoint = " + triggerCmp.SpawnPoint.transform.position); * Debug.Log("TitleSpawnPoint = " + triggerCmp.TitleSpawnPoint.transform.position); * triggerCmp.TitleHolder.transform.position = triggerCmp.TitleSpawnPoint.transform.position; * Debug.Log("Pos после = " + triggerCmp.TitleHolder.transform.position);*/ //titlesCmp.anim.Play(); Debug.Log("Complete"); }
public void OnStart() { CorutineManager.StartCorutine(FirstSound()); }