Example #1
0
    void OnTriggerEnter(Collider col)
    {
        Hurtbox3D colBox = col.GetComponent <Hurtbox3D>();

        if (colBox != null && colBox.owner.GetComponent <ShmupPlayer>() != null)
        {
            CameraControlsTopDown3D.instance.targetRotation_Y = targetRotationY;
        }
    }
Example #2
0
    private void OnTriggerEnter(Collider col)
    {
        Hurtbox3D colBox = col.GetComponent <Hurtbox3D>();

        if (colBox != null && colBox.owner.GetComponent <ShmupPlayer>() != null)
        {
            associatedLevel.EndLevel();
        }
    }
Example #3
0
    private void OnTriggerEnter(Collider col)
    {
        Hurtbox3D colBox = col.GetComponent <Hurtbox3D>();

        if (colBox != null && colBox.owner.GetComponent <ShmupPlayer>() != null)
        {
            linkedEncounter.StartEncounter();
            Destroy(this.gameObject);
        }
    }
    void OnTriggerEnter(Collider col)
    {
        Hurtbox3D colBox = col.GetComponent <Hurtbox3D>();

        if (colBox != null && colBox.owner.GetComponent <ShmupPlayer>() != null)
        {
            WirelessPort entity = owner.GetComponent <WirelessPort>();
            entity.OnHit(0, colBox.owner);
        }
    }
Example #5
0
    private void OnTriggerEnter(Collider col)
    {
        Hurtbox3D colBox = col.GetComponent <Hurtbox3D>();

        if (colBox != null && colBox.owner.GetComponent <ShmupPlayer>() != null)
        {
            triggerActivated = true;
            linkedWave.FinishWave();
            Die();
        }
    }
Example #6
0
    // Update is called once per frame
    void OnTriggerEnter(Collider col)
    {
        Hurtbox3D hurtbox = col.gameObject.GetComponent <Hurtbox3D>();

        if (hurtbox != null)
        {
            Debug.Log("triggered");
            if (hurtbox.owner.GetComponent <ShmupPlayer>() != null)
            {
                if (isCutscene)
                {
                    StartCoroutine(ShmupGameManager.instance.PlayCutscene(dialog, withPortraits));
                }
                else
                {
                    StartCoroutine(ShmupGameManager.instance.StartConversation(dialog, withPortraits));
                }
                this.gameObject.SetActive(false);
            }
        }
    }