devNotes 7-31-16 Heart Radiator Sensor – Vive

https://divillysausages.com/2016/01/21/performance-tips-for-unity-2d-mobile/

http://spectaclevr.com/

Unity Special Presentation: VRLA Edition

Thursday, Aug 4, 2016, 7:30 PM

Location details are available to members only.

117 Uniters Went

Unity staff will attend and share some new Unity content while in town for VRLA!This event is on a different night then our regular schedule to run in parallel with the event.More event details coming soon.IndieDesk has Validation for $10 After 5:30pm if you park in the Wells Fargo North Tower Building After 5:30pm Parking Address: 330 South …

Check out this Meetup →

https://github.com/maiisalihu/NatCam-VR-Cardboard

https://www.orduh.com/fix-samsung-galaxy-s7-battery-drain-overheating/

public class MainComponentManger {
    private static MainComponentManger instance;
    public static void CreateInstance () {
        if (instance == null) {
            instance = new MainComponentManger ();
            GameObject go = GameObject.Find ("Main");
            if (go == null) {
                go = new GameObject ("Main");
                instance.main = go;
                // important: make game object persistent:
                Object.DontDestroyOnLoad (go);
            }
            // trigger instantiation of other singletons
            Component c = MenuManager.SharedInstance;
            // ...
        }
    }

    GameObject main;

    public static MainComponentManger SharedInstance {
        get {
            if (instance == null) {
                CreateInstance ();
            }
            return instance;
        }
    }

    public static T AddMainComponent <T> () where T : UnityEngine.Component {
        T t = SharedInstance.main.GetComponent<T> ();
        if (t != null) {
            return t;
        }
        return SharedInstance.main.AddComponent <T> ();
    }
public class AudioManager : MonoBehaviour {
    private static AudioManager instance = null;
    public static AudioManager SharedInstance {
        get {
            if (instance == null) {
                instance = MainComponentManger.AddMainComponent<AudioManager> ();
            }
            return instance;
        }
    }

——————————————————-

using UnityEngine;
using System.Collections;

public class Argos_Heart:MonoBehaviour
{
    public static Argos_Heart inst;

    [HideInInspector]
    public static Radiator radiator;
    public static Sensor sensor;

    public static Argos_Heart Inst
    {
        get
        {
            if (inst == null)
            {
                inst = new Argos_Heart();
            }
            return inst;
        }
    }

    void Awake()
    {
        inst = this;
        radiator = new Radiator();
        sensor = new Sensor();
    }

    void Start()
    {

    }
}

https://youtu.be/u4VtCgORAyc