Beispiel #1
0
    // was chosen to be flipped
    private void OnMouseDown()
    {
        // do nothing if on cooldown
        if (cooldownManager.isOnCooldown())
        {
            return;
        }

        // TODO: flip animation
        StartCoroutine("CoFlipAnimation");

        // activate what was hidden
        prefabInstance.SetActive(true);

        // reset the cooldown
        cooldownManager.resetCooldown();
    }