Beispiel #1
0
    public MyDailyRewardManager()
    {
        lastDate         = new RegisterLongParameter("LastLoginDate", DateTime.Today.Ticks);
        totalLoginDay    = new RegisterIntParameter("TotalLoginDay", 0);
        canGetLoginBonus = new RegisterBoolParameter("CanGetLoginBonus", true);

        SetLoginBonusItemList();
    }
Beispiel #2
0
    protected override void Start()
    {
        base.Start();
        uiManager    = UIManager.Instance;
        currentLevel = new RegisterIntParameter("CurrentLevel", 1);

        StartCoroutine(GameLoop());
    }
Beispiel #3
0
    public MissionData(int id, MissionInfo info)
    {
        MissionID = id;
        Info      = info;

        prevValue        = new RegisterIntParameter(SaveKey + "-PrevValue", 0);
        currentValue     = new RegisterIntParameter(SaveKey + "-CurrentValue", 0);
        completeDateTime = new RegisterLongParameter(SaveKey + "-Time", 0);
        isClear          = new RegisterBoolParameter(SaveKey + "-IsClear", false);
    }
Beispiel #4
0
    protected override void Start()
    {
        base.Start();

        for (int i = 0; i < currentMissionIndexes.Length; i++)
        {
            currentMissionIndexes[i] = new RegisterIntParameter("MissionIndex" + i, i);
            var index        = currentMissionIndexes[i].GetValue();
            var missionIndex = GetMissionInfoIndex(index + 1);
            MissionDataList.Add(new MissionData(index, missions[GetMissionInfoIndex(index + 1)]));
        }
    }
Beispiel #5
0
    protected override void Awake()
    {
        base.Awake();

        moveBlockCount     = new RegisterIntParameter("MoveBlockCount", 0);
        makeSlimeCount     = new RegisterIntParameter("MakeSlimeCount", 0);
        earnCoinCount      = new RegisterIntParameter("EarnCoinCount", 0);
        playChallengeCount = new RegisterIntParameter("PlayChallengeCount", 0);

        for (int i = 0; i < missions.Length; i++)
        {
            missions[i].Index = i;
        }
    }