Пример #1
0
 // Start is called before the first frame update
 void Start()
 {
     Ucgen        = FindObjectOfType <Ucgen>();
     Besgen       = FindObjectOfType <Besgen>();
     BesgenScript = FindObjectOfType <BesgenScript>();
     AudioSource  = GetComponent <AudioSource>();
     Board        = FindObjectOfType <BoardController>();
     SkorManager  = FindObjectOfType <SkorManager>();
     go           = GameObject.FindWithTag("deadbox");
     //  Board = GetComponent<BoardController>();
 }
Пример #2
0
    // Start is called before the first frame update
    void Start()
    {
        float width  = Screen.width;
        float height = Screen.height;

        Debug.Log(width);
        Debug.Log(height);
        AtesOzellik         = FindObjectOfType <AtesOzellik>();
        UcgenScript         = FindObjectOfType <UcgenScript>();
        Besgen              = FindObjectOfType <Besgen>();
        TopKontrol          = FindObjectOfType <TopKontrol>();
        BesgenScript        = FindObjectOfType <BesgenScript>();
        SkorManager         = FindObjectOfType <SkorManager>();
        ReklamScript        = FindObjectOfType <ReklamScript>();
        AudioSource         = GetComponent <AudioSource>();
        AtisSayisiText.text = "X" + atisSayisi.ToString();
        baslangicPozisyonu  = Camera.main.ViewportToWorldPoint(new Vector3(0, 0, 0));
        bitisPozisyonu      = Camera.main.ViewportToWorldPoint(new Vector3(1, 0, 0));

        hareket = GetComponent <Rigidbody2D>();
    }