Exemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     endPosY         = -50.0f;//off
     currentlyON     = false;
     rectTranformObj = this.gameObject.GetComponent <RectTransform>();
     networkObj      = GameObject.Find("networkObject");
     networkScr      = (UdpSocketManagerUsageExample)networkObj.GetComponent(typeof(UdpSocketManagerUsageExample));
     //transform.position = new Vector3(transform.position.x, 50.0f, transform.position.z);
 }
Exemplo n.º 2
0
 void Start()
 {
     networkObj = GameObject.Find("networkObject");
     networkScr = (UdpSocketManagerUsageExample)networkObj.GetComponent(typeof(UdpSocketManagerUsageExample));
 }