Example #1
0
 private void OnTriggerExit2D(Collider2D other)
 {
     if (other.CompareTag("Extraction"))
     {
         isTriggeringExtractionObjective = false;
         triggeredExtractionObjective    = null;
     }
 }
Example #2
0
 private void OnTriggerEnter2D(Collider2D other)
 {
     if (other.CompareTag("Extraction"))
     {
         triggeredExtractionObjective    = other.GetComponentInParent <ExtractionObjective>();
         isTriggeringExtractionObjective = true;
     }
 }
Example #3
0
    void PickupExtractionObject()
    {
        playerMovement.SetIsHoldingExtractionObject(true);
        extractionObjective = triggeredExtractionObjective;
        extractionObjective.OnPickup(playerNumber, this);

        if (SoundManager.instance != null)
        {
            SoundManager.instance.PlaySFX("SFX_WeaponPickup");
        }
    }
Example #4
0
 public void DropExtractionObject()
 {
     extractionObjective.OnDrop();
     playerMovement.SetIsHoldingExtractionObject(false);
     extractionObjective = null;
 }