Skip to content

Instantly share code, notes, and snippets.

View fredknack's full-sized avatar

Fred Knack fredknack

View GitHub Profile
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class PersistentManagerScript : MonoBehaviour {
public static PersistentManagerScript Instance { get; private set; }
public GameObject playerFX;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Target : MonoBehaviour
{
public Color m_FlashDamageColor = Color.white;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MoveToGoal : MonoBehaviour
{
//public float speed = 0.3f;
public float accuracy = 0.01f;
@fredknack
fredknack / PersistentScript.cs
Created June 9, 2019 07:24
Persistent Manager Script #framework #Unity
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PersistentScript : MonoBehaviour
{
public static PersistentScript Instance { get; private set; }
DateTime referenceDate = DateTime.Now;