Skip to content

Instantly share code, notes, and snippets.

@sydney4529
sydney4529 / LightRotate
Created Apr 9, 2018
Script for the rotating sun
View LightRotate
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 Apr 9, 2018
Audio manager for the sound in the game
View SAudioManager
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 Apr 9, 2018
Code for the player controller interactivity
View PlayerCollision
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;
View gist:c0ed24907cd92f551028c14650006800
/*
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
View gist:bfe3ac029dbd766d77608454cce6ed8c
/*
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