© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
2 replies
tanato

❔ Easy problem C# Unity

Hello there, im trying on following a tutorial for my game but im stuck. the problem is that i want my npc to go on a particular node only if a door is open and goes back to another previous node if the door is closed. of course i know that this is just a simple question and i can do that by using bools and if statement but actually im very dumb at coding and ive already tryed but without succes and i need help to add this stuff to my preexisting code that i barely understand.
DoorCode https://pastebin.com/7bQuR5yx
NpcCode https://pastebin.com/p6zYY0ef
NpcCodeEditor https://pastebin.com/9AmX5yQR
Pastebin
using System.Collections;using System.Collections.Generic;using Uni...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Pastebin
using System.Collections;using System.Collections.Generic;using Uni...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Pastebin
using UnityEngine;using UnityEditor;using System.Collections;using ...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

C# for Unity
C#CC# / help
2y ago
❔ c# unity error
C#CC# / help
3y ago
❔ Unity property unityaction invoke
C#CC# / help
3y ago
✅ helping learn C# Unity
C#CC# / help
9mo ago