feat (material): add a vine around the player and set a material on it

This commit is contained in:
Pierre Ryssen
2026-05-04 21:10:41 +02:00
parent 360b30370a
commit 4d4a54094e
6 changed files with 231 additions and 39 deletions

View File

@@ -27,10 +27,9 @@ public class SlowdownArea : MonoBehaviour
jump.JumpForce = 1.5f;
isInZone = true;
if (currentCrawler == null) {
currentCrawler = Instantiate(rootCrawlerPrefab);
RootCrawler crawler = currentCrawler.GetComponent<RootCrawler>();
crawler.target = playerBody.transform;
currentCrawler = Instantiate(rootCrawlerPrefab, player.transform);
RootCrawler crawler = currentCrawler.GetComponent<RootCrawler>();
crawler.target = playerBody.transform;
}
}
}