コード例 #1
0
 RobotConnectionIfo AddRobot(TelubeeOVRCamera r)
 {
     RobotConnectionIfo ifo=new RobotConnectionIfo();
     ifo.Robot = r.RobotConnector;
     ifo.Renderer = r;
     ifo.IsActive = false;
     _ifo.Add (ifo);
     return ifo;
 }
コード例 #2
0
ファイル: TeleportManager.cs プロジェクト: mrayy/TxKit
    RobotConnectionIfo AddRobot(TxKitEyes r)
    {
        RobotConnectionIfo ifo = new RobotConnectionIfo();

        ifo.Robot    = r.RobotConnector;
        ifo.Renderer = r;
        ifo.IsActive = false;
        _ifo.Add(ifo);
        return(ifo);
    }
コード例 #3
0
ファイル: TeleportManager.cs プロジェクト: mrayy/TxKit
 // 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);
     }
 }