public void Start()
 {
     //HSRの頭部の座標とステート情報をSubscribeする
     tf = gameObject.GetComponent <TF_Manager>();
     gameObject.GetComponent <TF_Manager>().Topic_EventHandler    += (sender, e) => Subscribed_tf();
     gameObject.GetComponent <State_Manager>().State_EventHandler += (sender, e) => Subscribed_State(e);
 }
    void Start()
    {
        position       = new Vector3();
        position_share = new Vector3();
        rotation_share = new Quaternion();

#if UNITY_IOS //iOS doesn't connect to ros-sharp
#else
        //HSRのTF情報とHSRの現在のステートを習得する
        tf            = HSR_connector.GetComponent <TF_Manager>();
        State_Manager = HSR_connector.GetComponent <State_Manager>();
        State_Manager.State_EventHandler += (sender, e) => generate(e);
#endif
    }
Exemple #3
0
 public void Start()
 {
     tf            = gameObject.GetComponent <TF_Manager>(); //HSRのTF情報を習得
     HSR_tf_marker = Instantiate(HSR_tf_marker);
     HSR_tf_marker.transform.parent = Root.transform;
 }