void Start() { stageRect.x -= cameraRect.x; stageRect.width -= cameraRect.width; targetPos = transform.position; height = targetPos.y; spawnner = Array.Find <GameObject>(GameObject.FindGameObjectsWithTag("Respawn"), (obj) => obj.GetComponent <SpawnPlayer>()).GetComponent <SpawnPlayer>(); }
void Start() { stageRect.x -= cameraRect.x; stageRect.width -= cameraRect.width; targetPos = transform.position; height = targetPos.y; spawnner = Array.Find<GameObject>( GameObject.FindGameObjectsWithTag("Respawn") , (obj) => obj.GetComponent<SpawnPlayer>()).GetComponent<SpawnPlayer>(); }