Example #1
0
 // Update is called once per frame
 void Update()
 {
     if (blueCube == true && Input.GetKeyDown(KeyCode.Return))
     {
         my_RM.AddBlueItem();
         doRefForBalloon = true;
         GetComponent <BoxCollider2D>().enabled  = false;
         GetComponent <SpriteRenderer>().enabled = false;
         soundCollect.Play();
         Destroy(gameObject, 1f);
     }
 }