void Start() { anim.GetComponent <Image>().sprite = spriteToFade; anim.gameObject.SetActive(true); save = gameObject.GetComponent <Saveing>(); save.notmenu = false; LastLevel = save.LastLevel; PlayerPrefs.DeleteKey("beforeBorders0"); anim.SetBool("FadeOut", false); gotolevel = -1; fade = false; ExitUI.SetActive(false); NewGameUI.SetActive(false); sc = gameObject.GetComponent <LoadTargetScript>(); Cursor.lockState = CursorLockMode.None; //Odblokowanie kursora myszy. Cursor.visible = true; //Pokazanie kursora. infoDeskActive = false; //tablica z informacją o projekcie jest wyłączona InfoDesk.SetActive(false); keyMenager = GameObject.Find("KeyMenager").GetComponent <KeyMenager>(); }
// Use this for initialization void Start() { gm = GameObject.Find("gameMaster").GetComponent <Game_Master>(); keyMenager = GameObject.Find("KeyMenager").GetComponent <KeyMenager>(); eq = gameObject.GetComponent <CanvasEkwipunek>(); CloseChest(); }
void Start() { soundholder = GameObject.Find("SoundHolder").GetComponent <SoundHolder>(); KeyMenager = GameObject.Find("KeyMenager").GetComponent <KeyMenager>(); soundholder.isloading = true; if (PlayerPrefs.HasKey("beforeBorders0")) //sprawdza czy została przekroczona granica stage'ow { prevBorders[0] = PlayerPrefs.GetInt("beforeBorders0"); prevBorders[1] = PlayerPrefs.GetInt("beforeBorders1"); } else { prevBorders[0] = 0; prevBorders[1] = 0; } StageInfo(); Cursor.lockState = CursorLockMode.Locked; //Zablokowanie kursora myszy. Cursor.visible = false; //Ukrycie kursora. if (sceneToLoad < 0) { return; } currentScene = SceneManager.GetActiveScene(); StartCoroutine(LoadAsync(sceneToLoad, anim)); Debug.Log("Loading...."); }
void Start() { //ustawienia dźwięku audioSource = gameObject.GetComponent <AudioSource>(); audioSource.loop = true; audioSource.clip = startClip; audioSource.Play(); can = true;//Możliwość zamknięcia //Komponenty gm = GameObject.FindGameObjectWithTag("GameMaster").GetComponent <Game_Master>(); keyMenager = GameObject.Find("KeyMenager").GetComponent <KeyMenager>(); anim = gameObject.GetComponent <Animator>(); player = GameObject.FindGameObjectWithTag("Player").GetComponent <Player_Controller>(); playerAttack = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerAttack>(); hp = Random.Range(2, 5); //ilość pozyskanego hp //Odwrócenie obiektu if (player.facingRight) { transform.localScale = new Vector3(1, 1, 1); } else { transform.localScale = new Vector3(-1, 1, 1); } anim.SetBool("End", false); }
void Start() { //oznaczenie booleanów na false getHurt = false; onKnee = false; knockbacking = false; Defend = false; dead = false; cape.SetActive(false); //załączenie komponentów rgb2d = gameObject.GetComponent <Rigidbody2D>(); keyMenager = GameObject.Find("KeyMenager").GetComponent <KeyMenager>(); gm = GameObject.FindGameObjectWithTag("GameMaster").GetComponent <Game_Master>(); anim = gameObject.GetComponent <Animator>(); pLayerAttack = gameObject.GetComponent <PlayerAttack>(); audioPlayer = gameObject.GetComponent <AudioPlayer>(); audioSource = gameObject.GetComponent <AudioSource>(); curHP = maxHP; curMana = MaxMana; //skakanie isJumping = false; JumpingTime = jumpingTimeCD; }
// Use this for initialization void Start() { keyMenager = GameObject.Find("KeyMenager").GetComponent <KeyMenager>(); gm = GameObject.FindGameObjectWithTag("GameMaster"); soundholder = GameObject.Find("SoundHolder").GetComponent <SoundHolder>(); bindkey = gameObject.GetComponent <BindKey>(); DefaultUI.SetActive(false); bindkeyUI = false; ResolutionScroll = false; QualityScroll = false; //kategorie poziomu trundości category[0].SetActive(true); category[1].SetActive(false); category[2].SetActive(false); category[3].SetActive(false); load(); if (gm != null) { gm.GetComponent <Game_Master>().settings = this; } SettingUI.SetActive(false); }
//static public GameObject powerUI; void Start() { //początkowe wartości PlayerFighting = false; ChangeToZero = true; YouGetBoard.SetActive(false); YouGet.text = " "; for (int i = 0; i < note.Length; i++) { note[i] = 0; } LevelId = Application.loadedLevel; save = gameObject.GetComponent <Saveing>(); DeadScreenImage.SetActive(false); NewLevelInstantiate = false; // data = gameObject.GetComponent<itemDataBase>(); awake = true; soundHolder = GameObject.Find("SoundHolder").GetComponent <SoundHolder>(); keyMenager = GameObject.Find("KeyMenager").GetComponent <KeyMenager>(); soundHolder.isloading = true; eq = GameObject.Find("Equipment").GetComponent <CanvasEkwipunek>(); saving = false; loadScene = false; player = GameObject.FindGameObjectWithTag("Player").GetComponent <Player_Controller>(); playerAtckScript = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerAttack>(); loadScript = gameObject.GetComponent <LoadTargetScript>(); itd = gameObject.GetComponent <itemDataBase>(); Debug.Log("itd nie jest null"); save.Load(); itemDataBaseChest = gameObject.GetComponent <itemDataBaseChest>(); if (itemDataBaseChest != null) //jezeli znajduje się skrzynia na planszy { Debug.Log("itemDataBaseChest nie jest null"); save.ChestLoad(LevelId); } RefreshEqStats(); soundHolder.isloading = false; if (PlayerPrefs.HasKey("difficultLevel")) //załadowanie poziomu trudności { difficultLevel = PlayerPrefs.GetInt("difficultLevel"); } settings.load(); //załadowanie ustawień exp_Slider = GameObject.Find("SkillUI").GetComponent <Exp_Slider>(); }
// Use this for initialization void Start() { Enter = false; player = GameObject.FindGameObjectWithTag("Player").GetComponent <Player_Controller>(); keyMenager = GameObject.Find("KeyMenager").GetComponent <KeyMenager>(); AltarTime = AltarTimeCD; gm = GameObject.FindGameObjectWithTag("GameMaster").GetComponent <Game_Master>(); }
// Use this for initialization void Start() { //dołączanie komponentów anim = gameObject.GetComponent <Animator>(); gameMaster = GameObject.FindGameObjectWithTag("GameMaster").GetComponent <Game_Master>(); keyMenager = GameObject.Find("KeyMenager").GetComponent <KeyMenager>(); audioSource = gameObject.GetComponent <AudioSource>(); }
void Start() { DashSpecialAttack = false; TimeDashAttack = TimeDashAttackCD; rb2d = gameObject.GetComponent <Rigidbody2D>(); SpecialJumpAttackTime = SpecialJumpAttackTimeCd; keyMenager = GameObject.Find("KeyMenager").GetComponent <KeyMenager>(); DeathModeTimeCD = (DeathModeTimeCDBasic * gm.PlayerMagic * 0.1f + DeathModeTimeCDBasic); CountOFAttack = 0; }
void Start() { //Ustawienie komponentów keyMenager = GameObject.Find("KeyMenager").GetComponent <KeyMenager>(); gm = GameObject.FindGameObjectWithTag("GameMaster").GetComponent <Game_Master>(); //Poczatkowe ustawienia PauseUI.SetActive(false); paused = false; }
void Start() { //Począatkowe ustawienia BackPicInputText.SetActive(false); BookUI.SetActive(false); Reading = false; OpenedPage = 0; refresh = true; playerStay = false; gm = GameObject.FindGameObjectWithTag("GameMaster").GetComponent <Game_Master>(); keyMenager = GameObject.Find("KeyMenager").GetComponent <KeyMenager>(); }
void Start() { //poczatkowe wartosci activeOnce = true; StartDialogue = false; ExitTime = ExitTimeCD; playerStay = false; //dołaczenie komponentów keyMenager = GameObject.Find("KeyMenager").GetComponent <KeyMenager>(); dialogueManager = FindObjectOfType <DialogueManager>().GetComponent <DialogueManager>(); }
void Start() { //Początkowe wartości desk.SetActive(false); ExitTime = ExitTimeCD; Exit = false; //Dołaczenie komponentów gm = GameObject.FindGameObjectWithTag("GameMaster").GetComponent <Game_Master>(); keyMenager = GameObject.Find("KeyMenager").GetComponent <KeyMenager>(); player = GameObject.Find("Player").GetComponent <Player_Controller>(); }
void Start() { //Poczatkowe ustawienie przycisków ich nazw i odpowiadającemu mu przyciskowi settings = gameObject.GetComponent <Settings>(); keyMenager = GameObject.Find("KeyMenager").GetComponent <KeyMenager>(); keys.Add("Left", (KeyCode)System.Enum.Parse(typeof(KeyCode), PlayerPrefs.GetString("Left", "A"))); keys.Add("Right", (KeyCode)System.Enum.Parse(typeof(KeyCode), PlayerPrefs.GetString("Right", "D"))); keys.Add("Jump", (KeyCode)System.Enum.Parse(typeof(KeyCode), PlayerPrefs.GetString("Jump", "W"))); keys.Add("Sprint", (KeyCode)System.Enum.Parse(typeof(KeyCode), PlayerPrefs.GetString("Sprint", "LeftShift"))); keys.Add("BackDash", (KeyCode)System.Enum.Parse(typeof(KeyCode), PlayerPrefs.GetString("BackDash", "Z"))); keys.Add("Attack", (KeyCode)System.Enum.Parse(typeof(KeyCode), PlayerPrefs.GetString("Attack", "K"))); keys.Add("SpecialAttack", (KeyCode)System.Enum.Parse(typeof(KeyCode), PlayerPrefs.GetString("SpecialAttack", "S"))); keys.Add("Throwing", (KeyCode)System.Enum.Parse(typeof(KeyCode), PlayerPrefs.GetString("Throwing", "F"))); keys.Add("ReleaseMagic", (KeyCode)System.Enum.Parse(typeof(KeyCode), PlayerPrefs.GetString("ReleaseMagic", "Tab"))); keys.Add("PowerMagic", (KeyCode)System.Enum.Parse(typeof(KeyCode), PlayerPrefs.GetString("PowerMagic", "Q"))); keys.Add("Pause", (KeyCode)System.Enum.Parse(typeof(KeyCode), PlayerPrefs.GetString("Pause", "Escape"))); keys.Add("Equipment", (KeyCode)System.Enum.Parse(typeof(KeyCode), PlayerPrefs.GetString("Equipment", "R"))); keys.Add("Experience", (KeyCode)System.Enum.Parse(typeof(KeyCode), PlayerPrefs.GetString("Experience", "U"))); keys.Add("Action", (KeyCode)System.Enum.Parse(typeof(KeyCode), PlayerPrefs.GetString("Action", "E"))); keys.Add("Fire", (KeyCode)System.Enum.Parse(typeof(KeyCode), PlayerPrefs.GetString("Fire", "Alpha1"))); keys.Add("Electricity", (KeyCode)System.Enum.Parse(typeof(KeyCode), PlayerPrefs.GetString("Electricity", "Alpha2"))); keys.Add("Darkness", (KeyCode)System.Enum.Parse(typeof(KeyCode), PlayerPrefs.GetString("Darkness", "Alpha3"))); keys.Add("Ankh", (KeyCode)System.Enum.Parse(typeof(KeyCode), PlayerPrefs.GetString("Ankh", "Alpha4"))); left.text = keys["Left"].ToString(); right.text = keys["Right"].ToString(); jump.text = keys["Jump"].ToString(); sprint.text = keys["Sprint"].ToString(); backdash.text = keys["BackDash"].ToString(); attack.text = keys["Attack"].ToString(); specialAttack.text = keys["SpecialAttack"].ToString(); throwing.text = keys["Throwing"].ToString(); releaseMagic.text = keys["ReleaseMagic"].ToString(); powerMagic.text = keys["PowerMagic"].ToString(); pause.text = keys["Pause"].ToString(); equipment.text = keys["Equipment"].ToString(); experience.text = keys["Experience"].ToString(); action.text = keys["Action"].ToString(); fire.text = keys["Fire"].ToString(); electricity.text = keys["Electricity"].ToString(); darkness.text = keys["Darkness"].ToString(); ankh.text = keys["Ankh"].ToString(); theSameUI.SetActive(false); //wyłączenie UI }
private KeyMenager keyMenager; //keyManager void Start() { //początkowe uzupełnianie makingConversation = false; sentences = new Queue <string>(); keyMenager = GameObject.Find("KeyMenager").GetComponent <KeyMenager>(); gm = GameObject.FindGameObjectWithTag("GameMaster").GetComponent <Game_Master>(); anim = AnimChild.GetComponent <Animator>(); time = timeCd; audioSource = AnimChild.GetComponent <AudioSource>(); counterOfSentences = 0; //pierwsza sentencja DialogueEnded = true; }
void Start() { //Początkowe ustawienia anim = gameObject.GetComponent <Animator>(); keyMenager = GameObject.Find("KeyMenager").GetComponent <KeyMenager>(); desk.SetActive(false); audioSource = gameObject.GetComponent <AudioSource>(); particle.SetActive(false); Debug.Log("setActive particle system false"); if (visited == false) { anim.SetBool("NoVisited", false); } playerStay = false; }
// Use this for initialization void Start() { SkillUIDesk.SetActive(false); fire = false; chaos = false; sword = false; ankh = false; elect = false; SkillShit.SetActive(false); Disappear = true; keyMenager = GameObject.Find("KeyMenager").GetComponent <KeyMenager>(); gm = GameObject.FindGameObjectWithTag("GameMaster").GetComponent <Game_Master>(); CheckPics(); }
void Start() { waitForDecision = false; StatsText.text = "S t a t s"; ekwipunek.SetActive(false); //Domyślnie ekwipunek wyłączony. Armor(); NoteNumber = 0; Change = true; NotesUI.SetActive(false); StatsUI.SetActive(false); accept = false; gm = GameObject.Find("gameMaster").GetComponent <Game_Master>(); audioSource = gameObject.GetComponent <AudioSource>(); keyMenager = GameObject.Find("KeyMenager").GetComponent <KeyMenager>(); RefreshNotes(); }
void Start() { //dodanie odpowiednich obiektów keyMenager = GameObject.Find("KeyMenager").GetComponent <KeyMenager>(); player = GameObject.FindGameObjectWithTag("Player"); }