Actual project things

This commit is contained in:
2016-05-18 20:02:27 +02:00
parent 1e9b3a1498
commit ce46120e5a
54 changed files with 8512 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
using UnityEngine;
using System.Collections;
public class RightController : MonoBehaviour {
public GameObject banana;
public GameObject viveController;
// Use this for initialization
void Start () {
GetComponent<ViewFrustrumTrigger>().LeaveView += toggleBanana;
}
void toggleBanana() {
banana.SetActive(!banana.activeSelf);
viveController.SetActive(!viveController.activeSelf);
}
// Update is called once per frame
void Update () {
}
}