void Start() { /* * if (!isLocalPlayer) * return; */ rigid = GetComponent <Rigidbody> (); anim = transform.Find("playerobj").GetComponent <Animator> (); m_camera = GameObject.Find("Main Camera").GetComponent <Camera> (); direction = transform.forward * 0.1f; //速度ベクトル Running = false; JumpTime = 1f; ItemDataBase DataBaseSC = GameObject.Find("MyDataBase").GetComponent <ItemDataBase> (); ItemList = DataBaseSC.getItemData(); AccessoryList = DataBaseSC.getAccessoryData(); WeaponList = DataBaseSC.getWeaponData(); DressList = DataBaseSC.getDressData(); latest_pos = transform.position; }