/// <summary>Default constructor</summary>
 public AgentMovement(GridClient client)
 {
     Client = client;
     Camera = new AgentCamera();
     Client.Network.LoginProgress += Network_OnConnected;
     Client.Network.Disconnected  += Network_OnDisconnected;
     updateInterval = Settings.DEFAULT_AGENT_UPDATE_INTERVAL;
 }
            /// <summary>Default constructor</summary>
            public AgentMovement(GridClient client)
            {
                Client = client;
                Camera = new AgentCamera();

                updateInterval = Settings.DEFAULT_AGENT_UPDATE_INTERVAL;
                updateTimer    = new Timer(new TimerCallback(UpdateTimer_Elapsed), null, Settings.DEFAULT_AGENT_UPDATE_INTERVAL,
                                           Settings.DEFAULT_AGENT_UPDATE_INTERVAL);
            }
 /// <summary>Default constructor</summary>
 public AgentMovement(GridClient client)
 {
     Client = client;
     Camera = new AgentCamera();
     Client.Network.LoginProgress += Network_OnConnected;                
     Client.Network.Disconnected += Network_OnDisconnected;
     updateInterval = Settings.DEFAULT_AGENT_UPDATE_INTERVAL;
 }
            /// <summary>Default constructor</summary>
            public AgentMovement(GridClient client)
            {
                Client = client;
                Camera = new AgentCamera();

                updateInterval = Settings.DEFAULT_AGENT_UPDATE_INTERVAL;
                updateTimer = new Timer(new TimerCallback(UpdateTimer_Elapsed), null, Settings.DEFAULT_AGENT_UPDATE_INTERVAL,
                    Settings.DEFAULT_AGENT_UPDATE_INTERVAL);
            }
            /// <summary>Default constructor</summary>
            public AgentMovement(LoggerInstance log, AgentManager self, NetworkManager network)
            {
                Log = log;
                Network = network;
                Self = self;
                Camera = new AgentCamera();

                updateInterval = Settings.DEFAULT_AGENT_UPDATE_INTERVAL;
                updateTimer = new Timer(new TimerCallback(UpdateTimer_Elapsed), null, Settings.DEFAULT_AGENT_UPDATE_INTERVAL,
                    Settings.DEFAULT_AGENT_UPDATE_INTERVAL);
            }
 /// <summary>Default constructor</summary>
 public AgentMovement(GridClient client)
 {
     Client = client;
     Camera = new AgentCamera();
     client.Network.OnConnected += new NetworkManager.ConnectedCallback(Network_OnConnected);
     client.Network.OnDisconnected += new NetworkManager.DisconnectedCallback(Network_OnDisconnected);
     updateInterval = Settings.DEFAULT_AGENT_UPDATE_INTERVAL;
 }
Example #7
0
 // Use this for initialization
 void Start()
 {
     m_agentCamera = GetComponent<AgentCamera>();
     m_camera = m_agentCamera.GetCamera();
 }
            /// <summary>Default constructor</summary>
            public AgentMovement(SecondLife client)
            {
                Client = client;
                Camera = new AgentCamera();

                updateTimer = new Timer(Settings.DEFAULT_AGENT_UPDATE_INTERVAL);
                updateTimer.Elapsed += new ElapsedEventHandler(UpdateTimer_Elapsed);
                updateTimer.Start();
            }