Skip to content

Instantly share code, notes, and snippets.

//
// CameraConroller.cs
//
// Author:
// ${ZeredaGames-AKA Thamas Bell} <${thamasbell@hotmail.com}>
//
// Copyright (c) ${2015} ${Thamas Bell}
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
@ZeredaGames
ZeredaGames / SplashManager.cs
Last active December 27, 2015 05:04
Display's a splash manater from a texture 2D. Displays durring the loading period.
//
// PlayerPrefsManager.cs
//
// Author:
// ${ZeredaGames-AKA Thamas Bell} <${thamasbell@hotmail.com}>
//
// Copyright (c) ${2015} ${Thamas Bell}
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
@ZeredaGames
ZeredaGames / PlayerPrefsManager.cs
Last active December 27, 2015 06:25
PlayerPrefsManager custom this is just a base just copy the pattern and add too for your liking.
//
// PlayerPrefsManager.cs
//
// Author:
// ${ZeredaGames-AKA Thamas Bell} <${thamasbell@hotmail.com}>
//
// Copyright (c) ${2015} ${Thamas Bell}
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
@ZeredaGames
ZeredaGames / CameraManager.cs
Last active December 27, 2015 06:24
Make 6 avalable cameras and this changes via the Camera enums .CS remove all debug moad and general settings if you do not have the script or do not want to use a debug mode.
//
// CameraManager.cs
//
// Author:
// ${ZeredaGames-AKA Thamas Bell} <${thamasbell@hotmail.com}>
//
// Copyright (c) ${2015} ${Thamas Bell}
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
@ZeredaGames
ZeredaGames / SaveData.cs
Last active February 23, 2019 08:35
A Save data concept. (Untested) and my need some treeking
//
// SaveData.cs
//
// Author:
// ${ZeredaGames-AKA Thamas Bell} <${thamasbell@hotmail.com}>
//
// Copyright (c) ${2015} ${Thamas Bell}
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
@ZeredaGames
ZeredaGames / GraphicsSettings.cs
Last active February 23, 2019 08:33
This is a GUI interface controller, part of my tab system #1
//
// GraphicsSettings.cs
//
// Author:
// ${ZeredaGames-AKA Thamas Bell} <${thamasbell@hotmail.com}>
//
// Copyright (c) ${2015} ${Thamas Bell}
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
@ZeredaGames
ZeredaGames / SignalSender.js
Last active December 27, 2015 06:19
Is an Action Interface Controller
#pragma strict
class ReceiverItem {
public var receiver : GameObject;
private var action : String = "OnSignal";
private var delay : float=0f;
public function SendWithDelay (sender : MonoBehaviour) {
yield WaitForSeconds (delay);
if (receiver)
#pragma strict
public var maxHealth : float = 100.0;
public var health : float = 100.0;
public var regenerateSpeed : float = 0.0;
public var invincible : boolean = false;
public var dead : boolean = false;
public var damagePrefab : GameObject; ///="Blood_Splatter"
public var damageEffectTransform : Transform;
private var gui : GUIText;
private var updateInterval = 1.0;
private var lastInterval : double; // Last interval end time
private var frames = 0; // Frames over current interval
function Start()
{
lastInterval = Time.realtimeSinceStartup;
@ZeredaGames
ZeredaGames / DrawOnGizmoDrawCube.cs
Last active December 30, 2018 03:19
Unity Gizmo Script
using UnityEngine;
using UnityEngine.UI;
using System.Collections;
public class DrawOnGizmoDrawCube : MonoBehaviour {
public float gizmoSize = 4;
public object gizmoedObject;
public void OnDrawGizmos()
{