Пример #1
0
        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();
        }
Пример #2
0
        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);
        }