This repository was archived by the owner on Aug 14, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Trigger.cs
Erik edited this page Apr 26, 2019
·
5 revisions
Script: Trigger.cs
- None
- None
- OnTriggered(GameObject go) - When triggered is tripped, passes the triggering object to subscribers as a parameter.
- None
Trigger.cs is slightly different than a Collider trigger. This trigger acts as a remote initiator for other scripts and methods. On its own, this does not perform any game logic. However, another script can reference a trigger via the inspector and subscribe to its OnTriggered method. This allows multiple different scripts, gameObjects, etc to listen to the same trigger and respond to the same event.
Script Documentation
General Scripts
Generic Character Scripts
Enemy Scripts
Player Scripts
Erik's ongoing laundry list of TODOs that he doesn't want to create issues for