Exemplo n.º 1
0
    void OnTriggerEnter2D(Collider2D hitInfo)
    {
        if (hitInfo.gameObject.tag == "Player" && !shownHint)
        {
            shownHint = true;
            tutHUD.ShowHint("Your Third Task", "Here I am getting you to destory the enemy tank to practise your fighting skills with the tank you have. This tank needs to be hit 5 times to be destoryed.");
            TankWeaponController twc = hitInfo.gameObject.GetComponentInChildren <TankWeaponController>();
            twc.disableControls = false;
        }

        if (hitInfo.gameObject.tag == "Player" && tutObjectiveC && !objectiveCompleted)
        {
            tutObjectiveC.ChangeObjective2(true, "Destory the tank before it kills you");
            tutObjectiveC.ChangeOptionalObjective(true, "Dodge Three shots");
        }
    }
Exemplo n.º 2
0
    void OnTriggerEnter2D(Collider2D hitInfo)
    {
        if (hitInfo.gameObject.tag == "Player" && !shownHint)
        {
            shownHint = true;
            tutHUD.ShowHint("Your Second Task", "Here I am getting you to destory the moving tank to practise your leading skills with the weapon on the tank. Beware that tank shells don't go to far. This tank needs to be hit 3 times to be destoryed.");
            TankWeaponController twc = hitInfo.gameObject.GetComponentInChildren <TankWeaponController>();
            twc.disableControls = false;
        }

        if (hitInfo.gameObject.tag == "Player" && tutObjectiveC && !objectiveCompleted)
        {
            tutObjectiveC.ChangeObjective2(true, "Destory the moving tank");
            tutObjectiveC.ChangeOptionalObjective(true, "Destory all of the moving tanks");
        }
    }
Exemplo n.º 3
0
    void OnTriggerEnter2D(Collider2D hitInfo)
    {
        if (hitInfo.gameObject.tag == "Player" && !shownHint)
        {
            shownHint = true;
            tutHUD.ShowHint("Your First Task", "Right because you haven't shot a tank for a long time I need you to blow up one tank. Then we can move on to the next. Please don't get too close you need to practise your aim. By the way your weapons are now live use left click to shoot.");
            TankWeaponController twc = hitInfo.gameObject.GetComponentInChildren <TankWeaponController>();
            twc.disableControls = false;
        }

        if (hitInfo.gameObject.tag == "Player" && tutObjectiveC && !objectiveCompleted)
        {
            tutObjectiveC.ChangeObjective2(true, "Destory one of the tanks");
            tutObjectiveC.ChangeOptionalObjective(true, "Destory all of the tanks");
        }
    }