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