// Use this for initialization void Start() { try { bl = new BSONListener(listenPort); } catch (SocketException se) { Debug.Log ("Socket exception - throw error"); return; } amnesiaEventHandler = GameObject.Find ("Scripts").GetComponent<Events> (); posSender = GetComponent<PositionSender>(); init = true; }
// Use this for initialization void Start() { try { bl = new BSONListener(listenPort); } catch (SocketException se) { Debug.Log("Socket exception - throw error"); return; } amnesiaEventHandler = GameObject.Find("Scripts").GetComponent <Events> (); posSender = GetComponent <PositionSender>(); init = true; }
public void Init() { _positionSender = GetComponent <PositionSender>(); _positionData = GetComponent <PositionData>(); }