Exemplo n.º 1
0
 private void OnTriggerStay2D(Collider2D collision)
 {
     if (collision.tag == "Bubble" && input.keyPressed[4])
     {
         BubbleSpawner.Color color = collision.gameObject.GetComponentInParent <Bubble>().color;
         collision.gameObject.GetComponentInParent <Bubble>().Disappear();
         ShieldTaken(color);
     }
 }
Exemplo n.º 2
0
 public void Start()
 {
     input = GetComponent <InputManager>();
     for (int i = 0; i < cryonSprites.Length; i++)
     {
         if (playerCryon.sprite == cryonSprites[i])
         {
             cryonColor = (BubbleSpawner.Color)i;
         }
     }
 }
Exemplo n.º 3
0
 void ShieldTaken(BubbleSpawner.Color color)
 {
     //shieldColor = color;
     //playerShield.sprite = shieldSprites[(int)color];
     //usageCount = 3;
 }
Exemplo n.º 4
0
 void CryonTaken(BubbleSpawner.Color color)
 {
     cryonColor         = color;
     playerCryon.sprite = cryonSprites[(int)color];
     usageCount         = 3;
 }
Exemplo n.º 5
0
 void Start()
 {
     effector   = GetComponent <AreaEffector2D>();
     cryonColor = GetComponentInParent <Cryon>().cryonColor;
 }