// Update is called once per frame void Update() { if (t == null) { t = FindObjectOfType <TabletBehaviour>(); } else { ProcessObjects(); } // get hit transform if (Physics.Raycast(transform.position, transform.forward, out hit)) { } }
private void Start() { t = transform.root.GetComponent <TabletBehaviour>(); }
// Use this for initialization void Start() { t = FindObjectOfType <TabletBehaviour>(); }
// Use this for initialization void Start() { scale = transform.localScale; t = transform.root.GetComponent <TabletBehaviour>(); }