void Start()
    {
        uscitaDiPrigione  = false;
        contatorePrigione = -1;
        effettoCasella    = true;
        proprieta         = new List <CasellaAcquistabile>();
        soldi             = 2500;
        soldiPrecedenti   = 2500;
        testoSoldi.text   = this.soldi.ToString() + " $";
        targetPosition    = this.transform.position;
        prigione          = GameObject.FindObjectOfType <Prigione>();
        controller        = GameObject.FindObjectOfType <StateController>();

        foreach (Casella item in GameObject.FindObjectsOfType <Casella>())
        {
            if (item.name == "1")
            {
                partenza = item;
            }
        }
    }
コード例 #2
0
 private void Start()
 {
     prigione = GameObject.FindObjectOfType <Prigione>();
 }