RobotConnectionIfo AddRobot(TelubeeOVRCamera r) { RobotConnectionIfo ifo=new RobotConnectionIfo(); ifo.Robot = r.RobotConnector; ifo.Renderer = r; ifo.IsActive = false; _ifo.Add (ifo); return ifo; }
RobotConnectionIfo AddRobot(TxKitEyes r) { RobotConnectionIfo ifo = new RobotConnectionIfo(); ifo.Robot = r.RobotConnector; ifo.Renderer = r; ifo.IsActive = false; _ifo.Add(ifo); return(ifo); }
// Use this for initialization void Start() { if (ActiveRobotID >= Robots.Length) { ActiveRobotID = 0; } for (int i = 0; i < Robots.Length; ++i) { RobotConnectionIfo ifo = AddRobot(Robots[i]); ifo.Renderer.ApplyMaterial(RemoteMaterial); ifo.IsActive = true; } if (_ifo.Count > ActiveRobotID) { _ifo[ActiveRobotID].IsActive = true; _ifo[ActiveRobotID].Renderer.ApplyMaterial(ActiveMaterial); } }