void Start() { // GameObject go = GameObject.Find("Socket"); hand = GameObject.Find("/Socket"); socket = hand.GetComponent("socketConnection") as socketConnection; // Debug.Log(hand); socketDefinition(); anim = GetComponent <Animator>(); }
// private Animator anim; void Start() { GameObject hand = GameObject.Find("/Socket"); // carloPosicion = GetComponent<Transform>(); socket = hand.GetComponent("socketConnection") as socketConnection; // anim = GetComponent("Animator"); // anim = GetComponent<Animator>(); // sendData(); // send_ID(); }