// Start is called before the first frame update protected virtual void Start() { playerScript = player.GetComponent <PointAndClick2DUserControl>(); Vector3 pos = gameObject.transform.position; pos.y = -pos.y; screenPos = Camera.main.WorldToScreenPoint(pos); Debug.Log(screenPos); }
protected virtual void Start() { timer = 30.0f; PlayerScript = Player.GetComponent <PointAndClick2DUserControl>(); PlayerScript.lastInteractedObject = null; }