public void Start() { Global.Instance().Memory.RegisterMemoryPopulater(this); DebugMapMarker debugMap = FindObjectOfType <DebugMapMarker>(); if (debugMap != null) { ActiveMap = FindObjectOfType <Map>(); Avatar = ActiveMap.GetComponentInChildren <AvatarEvent>(); } }
public void Start() { ActiveMap = FindObjectOfType <Map>(); Avatar = ActiveMap?.GetComponentInChildren <AvatarEvent>(); }