void OnTriggerEnter(Collider col) { Hurtbox3D colBox = col.GetComponent <Hurtbox3D>(); if (colBox != null && colBox.owner.GetComponent <ShmupPlayer>() != null) { CameraControlsTopDown3D.instance.targetRotation_Y = targetRotationY; } }
private void OnTriggerEnter(Collider col) { Hurtbox3D colBox = col.GetComponent <Hurtbox3D>(); if (colBox != null && colBox.owner.GetComponent <ShmupPlayer>() != null) { associatedLevel.EndLevel(); } }
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); } }
private void OnTriggerEnter(Collider col) { Hurtbox3D colBox = col.GetComponent <Hurtbox3D>(); if (colBox != null && colBox.owner.GetComponent <ShmupPlayer>() != null) { triggerActivated = true; linkedWave.FinishWave(); Die(); } }
// 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); } } }