using UnityEngine;
public class CubeA : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
//CubeBの位置をCubeB.csで定義した位置に変更する
GameObjectcube_bObj = GameObject.Find("CubeB");
CubeB cube_b = cube_bObj.GetComponent<CubeB>();
cube_b.transform.position = cube_b.attachPos;
}
// Update is called once per frame
void Update()
{
}
}