public override void MoveEffector() { if (!isExit && pair) { GameObject.Destroy(pair.gameObject); pair = null; } EffectorSpawner.effectorSpawner.MoveSpawn(this); //EffectorSpawner.effectorSpawner.SpawnNew(gameObject); }
public void SetPair(TeleporterEffector other) { other.pair = this; pair = other; }