Exemple #1
0
 void OnStasisCollected()
 {
     Debug.Log("Stasis ability collected");
     //GameManager.inst.canUseStasis = true;
     StasisUIPanel.inst.UpdateStasisPanelActive(true, true);
     AudioLibrary.PlayCodePickupSound();
     GameObject.Instantiate(pickupParticlesPrefab, transform.position, Quaternion.identity);
 }
Exemple #2
0
 void OnTriggerEnter2D(Collider2D col)
 {
     if (col.GetComponent <Entity> () != null)
     {
         if (col.CompareTag("Player"))
         {
             AddCode();
             AudioLibrary.PlayCodePickupSound();
         }
     }
 }