Ejemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     if (ClickControllerObject)
     {
         this.ClickScript = ClickControllerObject.GetComponent <CookieScript>();
     }
     this.thisMeshRenderer = this.GetComponent <MeshRenderer>();
 }
Ejemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     if (ClickControllerObject)
     {
         this.ClickScript = ClickControllerObject.GetComponent<CookieScript>();
     }
     this.thisMeshRenderer = this.GetComponent<MeshRenderer>();
 }
Ejemplo n.º 3
0
    // Start is called before the first frame update
    void Start()
    {
        audioSrc  = GetComponent <AudioSource>();
        popEffect = Resources.Load <AudioClip>("Pop");

        kakScript = GameObject.FindWithTag("Cookie").GetComponent <CookieScript>();

        for (int i = 0; i < Clicked.Length; i++)
        {
            Clicked[i].SetActive(false);
        }

        for (int i = 0; i < Cookies.Length; i++)
        {
            Cookies[i].SetActive(false);
        }
    }