コード例 #1
0
    void Start()
    {
        DS_int_JointNumber = int.Parse(gameObject.name.Substring(5, 1));

        DS_DSMainRobot_MainRobotScript = GameObject.FindWithTag("MainRobot").GetComponent <DSMainRobot>();
        DS_int_AxisNumber = DS_DSMainRobot_MainRobotScript.DS_int_Axis[DS_int_JointNumber];
    }
コード例 #2
0
 private void Awake()
 {
     Instance = this;
 }