private bool isSet = false; // remote용 변수 void initDir() { position = CrossSceneInfo.pos + 1; direction = CrossSceneInfo.getMyDirection(); Debug.Log("pos:" + position + ", dir: " + direction); }
// Start is called before the first frame update void Start() { tr = GetComponent <Transform>(); pv = GetComponent <PhotonView>(); direction = CrossSceneInfo.getMyDirection(); }