示例#1
0
文件: Task.cs 项目: salma-s/Meltdown
    public override void setupTask()
    {
        npc = FindObjectOfType <CityBikeNPC>();
        npc.StartTask();
        taskController.readyForBike();

        bikeShop.fill();
    }
示例#2
0
    public override ItemTypes OnInteract()
    {
        //get NPC to change course and leave off screen
        //Complete Bike task
        npc = this.GetComponent <CityBikeNPC>();
        npc.GiveBike();
        CompleteTask();
        PlayInteractSound();

        //Decrease score & display popup
        scoring.taskScored(CityScoreController.Tasks.BIKE);

        return(ItemTypes.NONE);
    }