示例#1
0
 void setBlankCall()
 {
     Scores          += blankCall1;
     CollectMinerals += blankCall2;
     DigBrick        += blankCall;
     BlastStone      += blankCall;
 }
示例#2
0
 void mission9(MineralType mnrl)
 {
     mineralCollectScore.Inc(1);
     if (mineralCollectScore.HasTempReached(m9record))
     {
         onMissionCompleted(9);
         CollectMinerals -= mission9;
     }
 }
示例#3
0
 void mission7(MineralType mnrl)
 {
     if (mnrl != MineralType.Gold)
     {
         return;
     }
     collectGoldScore.Inc(1);
     if (collectGoldScore.HasTempReached(m7record))
     {
         onMissionCompleted(7);
         CollectMinerals -= mission7;
     }
 }
示例#4
0
 void mission8(MineralType mnrl)
 {
     if (mnrl != MineralType.Diamond)
     {
         return;
     }
     collectDiamondScore.Inc(1);
     if (collectDiamondScore.HasTempReached(m8record))
     {
         onMissionCompleted(8);
         CollectMinerals -= mission8;
     }
 }
示例#5
0
 void mission6(MineralType mnrl)
 {
     if (mnrl != MineralType.Copper)
     {
         return;
     }
     collectCopperScore.Inc(1);
     if (collectCopperScore.HasTempReached(m6record))
     {
         onMissionCompleted(6);
         CollectMinerals -= mission6;
     }
 }
示例#6
0
 void mission5(MineralType mnrl)
 {
     if (mnrl != MineralType.Coal)
     {
         return;
     }
     Debug.Log("coal found");
     collectCoalScore.Inc(1);
     if (collectCoalScore.HasTempReached(m5record))
     {
         Debug.Log("coal found completed");
         onMissionCompleted(5);
         CollectMinerals -= mission5;
     }
 }
示例#7
0
    void setAllMissionDelegate()
    {
        int section = (int)missionIndex.Record / GROUP_LIMIT;

        Debug.Log("section:" + section);
        if (sectionCheck [section])
        {
            return;
        }
        sectionCheck [section] = true;
        switch (section)
        {
        case 0:
            if (!m1.IsCompleted())
            {
                Scores += mission1;
            }
            if (!m2.IsCompleted())
            {
                CollectMinerals += mission2;
            }
            break;

        case 1:
            if (!m3.IsCompleted())
            {
                DigBrick += mission3;
            }
            if (!m4.IsCompleted())
            {
                BlastStone += mission4;
            }
            break;

        case 2:
            if (!m5.IsCompleted())
            {
                CollectMinerals += mission5;
            }

            if (!m6.IsCompleted())
            {
                CollectMinerals += mission6;
            }
            break;

        case 3:
            if (!m7.IsCompleted())
            {
                CollectMinerals += mission7;
            }
            if (!m8.IsCompleted())
            {
                CollectMinerals += mission8;
            }
            break;

        case 4:
            if (!m9.IsCompleted())
            {
                CollectMinerals += mission9;
            }
            if (!m10.IsCompleted())
            {
                Scores += mission10;
            }
            break;
        }
    }
示例#8
0
    void setAllMissionDelegate()
    {
        int section = (int)missionIndex.Record / GROUP_LIMIT;
        Debug.Log ("section:"+section);
        if (sectionCheck [section])
            return;
        sectionCheck [section] = true;
        switch (section) {
        case 0:
            if (!m1.IsCompleted ()) {
                Scores += mission1;
            }
            if (!m2.IsCompleted ()) {
                CollectMinerals += mission2;
            }
            break;
        case 1:
            if (!m3.IsCompleted ()) {
                DigBrick += mission3;
            }
            if (!m4.IsCompleted ()) {
                BlastStone += mission4;
            }
            break;
        case 2:
            if (!m5.IsCompleted ()) {
                CollectMinerals += mission5;
            }

            if (!m6.IsCompleted ()) {
                CollectMinerals += mission6;
            }
            break;
        case 3:
            if (!m7.IsCompleted ()) {
                CollectMinerals += mission7;
            }
            if (!m8.IsCompleted ()) {
                CollectMinerals += mission8;
            }
            break;
        case 4:
            if (!m9.IsCompleted ()) {
                CollectMinerals += mission9;
            }
            if (!m10.IsCompleted ()) {
                Scores += mission10;
            }
            break;
        }
    }
示例#9
0
 void setBlankCall()
 {
     Scores += blankCall1;
     CollectMinerals += blankCall2;
     DigBrick += blankCall;
     BlastStone += blankCall;
 }
示例#10
0
 void mission9(MineralType mnrl)
 {
     mineralCollectScore.Inc (1);
     if (mineralCollectScore.HasTempReached (m9record)) {
         onMissionCompleted(9);
         CollectMinerals -= mission9;
     }
 }
示例#11
0
 void mission8(MineralType mnrl)
 {
     if (mnrl != MineralType.Diamond)
         return;
     collectDiamondScore.Inc (1);
     if (collectDiamondScore.HasTempReached (m8record)) {
         onMissionCompleted(8);
         CollectMinerals -= mission8;
     }
 }
示例#12
0
 void mission7(MineralType mnrl)
 {
     if (mnrl != MineralType.Gold)
         return;
     collectGoldScore.Inc (1);
     if (collectGoldScore.HasTempReached (m7record)) {
         onMissionCompleted(7);
         CollectMinerals -= mission7;
     }
 }
示例#13
0
 void mission6(MineralType mnrl)
 {
     if (mnrl != MineralType.Copper)
         return;
     collectCopperScore.Inc (1);
     if (collectCopperScore.HasTempReached (m6record)) {
         onMissionCompleted(6);
         CollectMinerals -= mission6;
     }
 }
示例#14
0
 void mission5(MineralType mnrl)
 {
     if (mnrl != MineralType.Coal)
         return;
     Debug.Log ("coal found");
     collectCoalScore.Inc (1);
     if (collectCoalScore.HasTempReached (m5record)) {
         Debug.Log ("coal found completed");
         onMissionCompleted(5);
         CollectMinerals -= mission5;
     }
 }