campfire/Assets/Scripts/VRPlayerSetup.cs

15 lines
455 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
// In VR, the player object persists over scene loads. This setups the player for the game.
public class VRPlayerSetup : MonoBehaviour {
public Lorax[] Loraces;
private void Start() {
GameObject Player = GameObject.FindGameObjectWithTag("Player");
LoraxCuller Culler = Player.GetComponent<LoraxCuller>();
Culler.Loraces = Loraces;
}
}