private GrandpaDetection() { if (_instance != null) { return; } _instance = this; isDetecting = true; items = new List <Item>(); freePlanes = new List <GameObject>(); }
// Use this for initialization void Awake() { detection = GrandpaDetection.Instance; Debug.Log(detection); Debug.Log("planedetection awake"); }