void Start() { InputField field = gameObject.GetComponent <InputField>(); field.onValueChange.AddListener(delegate { DisableNavigation(); }); field.onEndEdit.AddListener(delegate { EnableNavigation(); }); CamMove = GameObject.FindGameObjectWithTag("Player").GetComponent <BrowseCamMovement>(); // ModifyArtefact = GameObject.FindGameObjectWithTag("MainCamera").GetComponent<Collect_RaycastModifyIncrement>(); }
public GameObject curArtefact; //used by Collect_RayCastModifyArtefact TODO not sure if this best way to get artefact into mod script void Start() { CamMove = gameObject.GetComponentInParent <BrowseCamMovement>(); previousIdentifier = null; }