campfire/Assets/Scripts/VRPlayerSetup.cs

15 lines
455 B
C#
Raw Normal View History

2020-06-12 21:28:40 +02:00
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;
}
}