public void LaunchNextPacket() { if (goodSplittedImage.AllPacketsCollected()) { print("Finish round"); FinishRound(); return; } PacketLauncher randomPacketLauncher = packetLaunchers[UnityEngine.Random.Range(0, packetLaunchers.Length)]; randomPacketLauncher.Launch(GetNextRandomPacketFromRandomImage()); }
private void Awake() { flyingPacketsContainer = FindObjectOfType <FlyingPacketsContainer>(); packetLauncher = FindObjectOfType <PacketLauncher>(); }