Ejemplo n.º 1
0
 public void AddSpecialBubble(SpecialBubble source, int type)
 {
     if (type == 3 && source == null)
     {
         StartFrenzy();
     }
     else
     {
         // Use immediately
         source.gameManager = ControllerGame.Instance;
         source.Trigger();
     }
 }
Ejemplo n.º 2
0
    public void SetSpecial(SpecialBubble s, ControllerGame m)
    {
        if (special != null)
            return;

        GameObject so = Instantiate(s.gameObject) as GameObject;
        so.transform.parent = transform;
        so.transform.localPosition = Vector3.zero;

        SpecialBubble newSpecial = so.GetComponent<SpecialBubble>();
        newSpecial.gameManager = m;
        newSpecial.parentBubble = this;

        so.SetActive(true);

        special = newSpecial;
    }