private void MoveSpawnPos(string spawn_pos_tag) { DestinationPointMover mover = new DestinationPointMover(m_PlayerLocator.Player.transform, m_PlayerLocator.View); var spawn_pos_array = GameObject.FindGameObjectsWithTag(spawn_pos_tag); foreach (GameObject spawn_pos in spawn_pos_array) { var reserve_obj = spawn_pos.GetComponentInChildren <PhotonReserveObject>(); if (null == reserve_obj) { mover.Move(spawn_pos); return; } } }
private void Awake() { m_PhotonView = GetComponent <PhotonView>(); m_Mover = new DestinationPointMover(transform, m_PhotonView); }