using System.Collections; using System.Collections.Generic; using UnityEngine; public class Collectible : MonoBehaviour { // TODO: Add variable for rotation speed around all 3 axes // TODO: Add missing variables for hover code given below. // NOTE: We will add a variable in the near future void Start() { // Nothing needed here } void Update() { // TODO: UNCOMMENT and make the collectible rotate at a constant speed /* Vector3 rotationvector = ___ ; this.transform.Rotate( ___ ); */ // TODO: UNCOMMENT, then add the missing member variables (if you haven't already) /* float xCoord = this.transform.position.x; float yCoord = HoverHeight + HoverMagnitude * Mathf.Sin(Time.timeSinceLevelLoad * HoverSpeed); float zCoord = this.transform.position.z; this.transform.position = new Vector3(xCoord, yCoord, zCoord); */ } private void OnTriggerEnter(Collider other) { // TODO: UNCOMMENT and make the object inactive when you trigger the collider /* this.____.________(_____); */ } }