Пример #1
0
    public void LaunchNextPacket()
    {
        if (goodSplittedImage.AllPacketsCollected())
        {
            print("Finish round");
            FinishRound();
            return;
        }

        PacketLauncher randomPacketLauncher = packetLaunchers[UnityEngine.Random.Range(0, packetLaunchers.Length)];

        randomPacketLauncher.Launch(GetNextRandomPacketFromRandomImage());
    }
Пример #2
0
 private void Awake()
 {
     flyingPacketsContainer = FindObjectOfType <FlyingPacketsContainer>();
     packetLauncher         = FindObjectOfType <PacketLauncher>();
 }