Beispiel #1
0
    /*public void RegisterMiniGameManager(PlanetMiniGameManager manager)
     * {
     *  this.miniGameManager = manager;
     * }
     *
     * public void UnregisterMiniGameManager()
     * {
     *  this.miniGameManager = null;
     * }*/

    /// <summary>
    /// tries to reveal ore, if there is no try available, it reveals field and shows reset button
    /// </summary>
    /// <param name="ore">ore to be revealed</param>
    public void Press(Ore ore)
    {
        tryController.UseTry();
        ore.OreSetAlpha(1.0f, 0.6f);
        LeanTween.value(totalValueDisplay.gameObject, UpdateTotalValue, this.totalValue, this.totalValue + multiplier * ore.Value, 0.6f);
        this.totalValue += multiplier * ore.Value;
        if (!tryController.HasTries)
        {
            DoOnArray(SetAlphaOnElement);

            resetButton.Show();
        }
    }