예제 #1
0
 // Use this for initialization
 void Start()
 {
     _manager = GameObject.FindObjectOfType <PresenceLayerManagerComponent> ();
     _robot   = GetComponent <RobotConnectionComponent> ();
     _robot.AddDependencyNode(this);
     _body = _robot.gameObject.GetComponent <TxKitBody> ();
 }
예제 #2
0
 // Use this for initialization
 void Start()
 {
     _impl = new ImplSinHeadController();
     Robot = GetComponent <RobotConnectionComponent> ();
     Body  = GetComponent <TxKitBody> ();
     Robot.AddDependencyNode(this);
 }
예제 #3
0
 public override void OnInputDisconnected(NodeBase src, string srcSlotName, string targetSlotName)
 {
     base.OnInputDisconnected(src, srcSlotName, targetSlotName);
     if (targetSlotName == "set_Body")
     {
         Body = null;
     }
 }
예제 #4
0
	void _robotLinked()
	{
		if (Connector != null) {
			_txeyes = Connector.GetComponent<TxKitEyes> ();
			_txbody = Connector.GetComponent<TxKitBody> ();
			_txmouth = Connector.GetComponent<TxKitMouth> ();
			_txears = Connector.GetComponent<TxKitEars> ();
		}
	}
예제 #5
0
 public DebugRobotStatus(RobotConnectionComponent r)
 {
     Robot = r;
     Body  = r.GetComponent <TxKitBody> ();
 }