private void Awake() { if (instance != null) { instance = this; } instance = this; }
// 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; }