示例#1
0
 // Update is called once per frame
 void Update()
 {
     if (!tank1 && zone.owningTeam == 1)
     {
         if (!objectiveCompleted)
         {
             tutObjectiveC.objective1Completed = true;
             tutObjectiveC.CompleteObjective2(true);
             objectiveCompleted = true;
             tutHUD.ShowHint("Well Done", "Congratulations you have completed your training I consider you ready to go on real missions, with your training done you can now fight for us. Dismissed Commander.");
         }
     }
 }
示例#2
0
文件: Task3.cs 项目: kar678/Tank-War
    // Update is called once per frame
    void Update()
    {
        if (!tank)
        {
            if (!objectiveCompleted)
            {
                tutObjectiveC.CompleteObjective2(true);
                objectiveCompleted = true;
                tutHUD.ShowHint("Well Done", "Now that you know how to fight an enemy tank you'll will now fight another tank then capture the objective in the next area. Just follow the dirt road into the next area.");
                UnityEngine.Object.Destroy(nextAreaWall);
            }
        }

        if (bulletsDodged >= 3)
        {
            if (!optionalObjectiveCompleted && !leftArea)
            {
                optionalObjectiveCompleted = true;
                tutObjectiveC.CompleteOptionalObjective(true);
                tutObjectiveC.optionalObjectivesCompleted++;
            }
        }
    }
示例#3
0
    // Update is called once per frame
    void Update()
    {
        if (!tank | !tank2)
        {
            if (!objectiveCompleted)
            {
                tutObjectiveC.CompleteObjective2(true);
                objectiveCompleted = true;
                tutHUD.ShowHint("Well Done", "Now that you know how to shoot a moving target I am now gonna get you to fight a tank thats going to shoot you. Just follow the dirt road into the next area.");
                UnityEngine.Object.Destroy(nextAreaWall);
            }
        }

        if (!tank && !tank2)
        {
            if (!optionalObjectiveCompleted && !leftArea)
            {
                optionalObjectiveCompleted = true;
                tutObjectiveC.CompleteOptionalObjective(true);
                tutObjectiveC.optionalObjectivesCompleted++;
            }
        }
    }
示例#4
0
    // Update is called once per frame
    void Update()
    {
        if (!tank1 || !tank2 || !tank3)
        {
            if (!objectiveCompleted)
            {
                tutObjectiveC.CompleteObjective2(true);
                objectiveCompleted = true;
                tutHUD.ShowHint("Well Done", "See that wasn't so hard considering they were dummy tanks. Now I am gonna get you to shoot a moving target in the next area. Just keep following the dirt road on the right");
                UnityEngine.Object.Destroy(nextAreaWall);
            }
        }

        if (!tank1 && !tank2 && !tank3)
        {
            if (!optionalObjectiveCompleted && !leftArea)
            {
                tutObjectiveC.CompleteOptionalObjective(true);
                optionalObjectiveCompleted = true;
                tutHUD.ShowHint("You destoryed them all?", "Didn't expect you to destory them all but here is an extra experience boost. Also if you complete all optional objectives you'll get something special");
                tutObjectiveC.optionalObjectivesCompleted++;
            }
        }
    }