public virtual void OnTriggerEnter2D(Collider2D other) { WorldMapIcon worldMapIcon = other.GetComponent <WorldMapIcon>(); if (worldMapIcon != null && worldMapIcon.isActive) { return; } WorldMap.playerIsAtObelisk = true; GameManager.updatables = GameManager.updatables.Add(this); Found = true; SaveAndLoadManager.Instance.Save(); }
public virtual void Start() { #if UNITY_EDITOR if (!Application.isPlaying) { if (worldMapIcon == null) { worldMapIcon = GetComponent <WorldMapIcon>(); } return; } worldMapIcon = GetComponent <WorldMapIcon>(); #endif instances = instances.Add(this); }