Esempio n. 1
0
    private void ApplyEffect()
    {
        Ball[] balls = FindObjectsOfType <Ball>();
        Pad    pad   = FindObjectOfType <Pad>();

        foreach (Ball item in balls)
        {
            item.ActiveteMagnet();
            Instantiate(particalEffects, transform.position, Quaternion.identity);
            pad.ActiveEffect();
        }
    }
Esempio n. 2
0
 public void ActiveteMagnet()
 {
     IsMagnetActive = true;
     pad.ActiveEffect();
 }