// Use this for initialization
 void Start()
 {
     thisrender           = gameObject.GetComponent <SpriteRenderer>();
     thiscollision        = gameObject.GetComponent <CircleCollider2D>();
     thiscollision.radius = 3.0f;
     sp_control           = GameObject.Find("connect_server");
     sp_con    = sp_control.GetComponent <socketio>();
     obj_sizex = thisrender.bounds.size.x;
     obj_sizey = thisrender.bounds.size.y;
     setscreen(true);
     wait = Random.Range(20, 50);
 }
예제 #2
0
    // Use this for initialization
    void Start()
    {
        GameObject line_con_obj = GameObject.Find("connect_server");

        line_con = line_con_obj.GetComponent <socketio>();
    }