created spawn point system
works by placing spawn point prefabs wherever you want them. Also created some prefabs of death zone and grapple zone objects
This commit is contained in:
@@ -150,6 +150,10 @@ public class PlayerBehavior : MonoBehaviour
|
||||
this.stateController.SetDeathCanvasActive(true);
|
||||
Destroy(this.gameObject);
|
||||
}
|
||||
else if (col.tag == "spawnPoint") {
|
||||
stateController.spawnPoint.GetComponent<SpawnPointBehavior>().DeactivateSpawnPoint();
|
||||
col.GetComponent<SpawnPointBehavior>().ActivateSpawnPoint();
|
||||
}
|
||||
}
|
||||
|
||||
void OnTriggerExit2D(Collider2D col)
|
||||
|
||||
Reference in New Issue
Block a user