void OnCollisionStay2D(Collision2D collision)
        {
            if (InputCapture.pickup && !GameManager.paused && collision.gameObject.CompareTag("Player") && !touchingMe)
            {
                //PlayerPrefsManager.SetPointValue(1);
                PlayerPrefsManager.ResetPointValue();
                // TODO Fix points
                //if(PlayerPrefsManager.GetPointValue() > 0)
                //{
                //    ui.pointsAvailable = true;
                //}
                //else
                //{
                //    ui.loadoutCanBeChanged = true;
                //}

                if (QuestController.currentQuest.eventID == 0)
                {
                    print("Completed tutorial");
                    qController.CompleteCurrentQuest();
                }
                touchingMe = true;
            }
            if (GameManager.paused && touchingMe)
            {
                touchingMe = false;
            }
        }
示例#2
0
 void CheckForCompletion()
 {
     if (setupDone)
     {
         if (QuestController.currentQuest.eventID == 1 && questReady && questDrop1.GetComponentInChildren <SpriteRenderer> ().sprite != questDrop1spr)
         {
             qController.CompleteCurrentQuest();
         }
         if (QuestController.currentQuest.eventID == 2 && questReady && droneUp && specialDrone == null)
         {
             qController.CompleteCurrentQuest();
             droneUp = false;
         }
         if (QuestController.currentQuest.eventID == 4 && questReady && specialTurret == null)
         {
             qController.CompleteCurrentQuest();
         }
     }
 }