Example #1
0
        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>();
        }
Example #2
0
        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>();
        }