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