Start() public method

public Start ( ) : void
return void
Esempio n. 1
0
 public void PlayGame()
 {
     if (PlayerPrefs.GetInt("Tutorial") == 1)
     {
         foreach (GameObject inst in Instruction)
         {
             inst.gameObject.SetActive(false);
         }
         instructionKurczak.gameObject.SetActive(false);
         logoAnim.enabled = true;
         logoAnim.Play("Hiding");
         bc.Start();
         gc.Start();
         Time.timeScale = 1;
     }
     else
     {
         menuKurczakowe.gameObject.GetComponent <Animator>().Play("Kurczak_z_TablicaBack");
         InstructionStart.gameObject.SetActive(true);
         InstructionStart2.gameObject.SetActive(true);
         instructionKurczak.gameObject.SetActive(true);
         InstructionStart.gameObject.GetComponent <Logomoving> ().speed      = 15;
         instructionKurczak.gameObject.GetComponent <BoxCollider> ().enabled = true;
     }
 }
Esempio n. 2
0
    public void OnClick()
    {
        Debug.Log("Restartcont click");

        ButtonCont.Start();
        ButtonCont.OnClick();

        foreach (GameObject card in ButtonCont.Deck)
        {
            card.SetActive(true);
            card.GetComponent <CardController>().HintBox.SetActive(false);
            card.transform.position = ButtonCont.DeckPos;
        }

        //ButtonCont.Deck = ButtonCont.Shuffle(ButtonCont.Deck);
        ButtonCont.Background.GetComponent <TokenController>().ResetTokens();
        ButtonCont.PlayerCardMenu.GetComponent <PlayOptionsController>().ScoreText.transform.position = new Vector3(-3000, 2, 1500);
        ButtonCont.PlayerCardMenu.GetComponent <PlayOptionsController>().MovesLog.text = "";
    }