void setBlankCall() { Scores += blankCall1; CollectMinerals += blankCall2; DigBrick += blankCall; BlastStone += blankCall; }
void mission9(MineralType mnrl) { mineralCollectScore.Inc(1); if (mineralCollectScore.HasTempReached(m9record)) { onMissionCompleted(9); CollectMinerals -= mission9; } }
void mission7(MineralType mnrl) { if (mnrl != MineralType.Gold) { return; } collectGoldScore.Inc(1); if (collectGoldScore.HasTempReached(m7record)) { onMissionCompleted(7); CollectMinerals -= mission7; } }
void mission8(MineralType mnrl) { if (mnrl != MineralType.Diamond) { return; } collectDiamondScore.Inc(1); if (collectDiamondScore.HasTempReached(m8record)) { onMissionCompleted(8); CollectMinerals -= mission8; } }
void mission6(MineralType mnrl) { if (mnrl != MineralType.Copper) { return; } collectCopperScore.Inc(1); if (collectCopperScore.HasTempReached(m6record)) { onMissionCompleted(6); CollectMinerals -= mission6; } }
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; } }
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; } }
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; } }
void mission9(MineralType mnrl) { mineralCollectScore.Inc (1); if (mineralCollectScore.HasTempReached (m9record)) { onMissionCompleted(9); CollectMinerals -= mission9; } }
void mission8(MineralType mnrl) { if (mnrl != MineralType.Diamond) return; collectDiamondScore.Inc (1); if (collectDiamondScore.HasTempReached (m8record)) { onMissionCompleted(8); CollectMinerals -= mission8; } }
void mission7(MineralType mnrl) { if (mnrl != MineralType.Gold) return; collectGoldScore.Inc (1); if (collectGoldScore.HasTempReached (m7record)) { onMissionCompleted(7); CollectMinerals -= mission7; } }
void mission6(MineralType mnrl) { if (mnrl != MineralType.Copper) return; collectCopperScore.Inc (1); if (collectCopperScore.HasTempReached (m6record)) { onMissionCompleted(6); CollectMinerals -= mission6; } }
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; } }