Skip to content

Instantly share code, notes, and snippets.

@sydney4529
sydney4529 / LightRotate
Created April 9, 2018 01:59
Script for the rotating sun
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class LightRotate : MonoBehaviour {
public float spinX = 0;
public float spinY = 0;
public float spinZ = 0;
@sydney4529
sydney4529 / SAudioManager
Created April 9, 2018 01:57
Audio manager for the sound in the game
using UnityEngine.Audio;
using System;
using UnityEngine;
//Credit to Brackeys youtube tutorial on Audio managers, as the majority of this code and learning how to use it was made by him.
public partial class SAudioManager : MonoBehaviour
{
@sydney4529
sydney4529 / PlayerCollision
Created April 9, 2018 01:52
Code for the player controller interactivity
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.SceneManagement;
public class PlayerCollision : MonoBehaviour
{
//Tags for each individual object
private bool photoPlay = false;
/*
Code Development Team
DIGF 2005 - Atelier II
Professor Nick Puckett
Tuesday January 23, 2018
NANO COMMUNICATION CODE
This code allows Nanos to read information from the serial port sent
from the control panel, and display corresponding images/animations on
the OLEDs.
THE CIRCUIT
/*
Code Development Team
DIGF 2005 - Atelier II
Professor Nick Puckett
Tuesday January 23, 2018
NANO COMMUNICATION CODE
This code allows Nanos to read information from the serial port sent
from the control panel, and display corresponding images/animations on
the OLEDs.
THE CIRCUIT