コード例 #1
0
 public void CollectBerries()
 {
     if (canCollect)
     {
         canCollect = false;
         score.AddBerries(2);
         gameObject.GetComponent <SpriteRenderer>().sprite = bezBerries;
         StartCoroutine(Regeneracja());
     }
 }