Пример #1
0
    public void RefreshClearTime()
    {
        string text = SlotInfo.GetClearTimeString(UserSlotData.currentSlot);

        label.text = string.Format(GameLocalize.GetText("cleartime"), text);

        if (SlotInfo.HasClearTime(UserSlotData.currentSlot))
        {
            if (SlotInfo.gameMode == SlotInfo.GameMode.Hardcore)
            {
                Leaderboard.instance.PostScore("Clear Time Iron Maiden", text, Mathf.RoundToInt(SlotInfo.GetClearTime(UserSlotData.currentSlot) * 1000.0f));
            }
            else if (SlotInfo.gameMode == SlotInfo.GameMode.Normal)
            {
                Leaderboard.instance.PostScore("Clear Time", text, Mathf.RoundToInt(SlotInfo.GetClearTime(UserSlotData.currentSlot) * 1000.0f));
            }
        }
    }