Пример #1
0
 private void Awake()
 {
     if (instance != null)
     {
         instance = this;
     }
     instance = this;
 }
Пример #2
0
    // Use this for initialization
    public virtual void Start()
    {
        var player = GameObject.Find("Player");

        _playerPos    = player.GetComponent <IsoTransform>();
        _npcPos       = GetComponent <IsoTransform>();
        _canvas       = GameObject.Find("DialogCanvas").GetComponent <DialogCanvasManager>();
        _playerSprite = player.GetComponent <SaveSprite>().Sprite;
    }