grenouille assets
This commit is contained in:
@@ -156,6 +156,11 @@ public class PlayerBehavior : MonoBehaviour
|
||||
stateController.spawnPoint.GetComponent<SpawnPointBehavior>().DeactivateSpawnPoint();
|
||||
col.GetComponent<SpawnPointBehavior>().ActivateSpawnPoint();
|
||||
}
|
||||
else if (col.tag == "Trumpet")
|
||||
{
|
||||
this.playerController.in_range = true;
|
||||
this.playerController.enemy = col.transform.parent.gameObject;
|
||||
}
|
||||
}
|
||||
|
||||
void OnTriggerExit2D(Collider2D col)
|
||||
@@ -164,6 +169,11 @@ public class PlayerBehavior : MonoBehaviour
|
||||
{
|
||||
grappleSurface = null;
|
||||
}
|
||||
else if (col.tag == "Trumpet")
|
||||
{
|
||||
this.playerController.in_range = true;
|
||||
this.playerController.enemy = null;
|
||||
}
|
||||
}
|
||||
|
||||
void OnCollisionEnter2D(Collision2D collision) {
|
||||
|
||||
Reference in New Issue
Block a user