Thanks for your reply
Woreck
7
Posts
1
Topics
1
Followers
45
Following
A member registered Oct 09, 2019 · View creator page →
Recent community posts
100 Stylized Wall Textures comments · Replied to Kalponic Studio in 100 Stylized Wall Textures comments
Hand Painted Textures - Vol 19 - Planks comments · Replied to oleekconder in Hand Painted Textures - Vol 19 - Planks comments
Hand Painted Textures - Vol 19 - Planks comments · Posted in Hand Painted Textures - Vol 19 - Planks comments
Adventure Jam 2023 community · Posted in [Unity C#, Intermediate] [Fulltime available] [Timezone EU] [Woreck#0202]
public LateParticipant : MonoBehaviour { [Header("Properties")] [SerializeField] int _teamID; [SerializeField] bool _foundATeam => _teamID != -1; public UnityEvent<int> TeamAssigned; public void SetTeamID(int id){ _teamID = id; TeamAssigned?.Invoke(_teamID); } } [CustomEditor(typeof(LateParticipant))] public class LateParticipantEditor : Editor{ int teamID = -1; public override OnInspectorGUI(){ LateParticipant _lp = (LateParticipant)target; teamID = EditorGUILayout.IntField("TeamID",teamID); if(GUILayout.Button("SetTeam"){ _lp.SetTeamID(teamID); } } }
Adventure Jam 2023 community · Created a new topic [Unity C#, Intermediate] [Fulltime available] [Timezone EU] [Woreck#0202]