public void Setup(MainGrid _mainGrid, float coolDown) { if ((int)atom.atomType < 1000) { Destroy(this); return; } mainGrid = _mainGrid; totalCoolDownTime = coolDown; atomType = atom.atomType - 1000; OnSpawnAtom.AddListener(mainGrid.GetComponent <AtomSpawner>().SpawnAtom); }