private void Awake() { tomeManager = FindObjectOfType <TomeManager>(); nearTome = null; equipCommand = gameObject.AddComponent <EquipCommand>(); }
// Start is called before the first frame update void Start() { tomeManager = FindObjectOfType <TomeManager>(); }
// Use this for initialization void Start() { playerTM = GameObject.FindGameObjectWithTag("Player").GetComponent <TomeManager>(); ray = Camera.main.ScreenPointToRay(Input.mousePosition); startingPos = transform.position; }
// Use this for initialization void Start() { playerTM = GameObject.FindGameObjectWithTag("Player").GetComponent <TomeManager>(); }