void Start() { connector = FindObjectOfType <DezyneConnector>(); if (connector == null) { Debug.LogFormat("{0} could not find the DezyneConnector, make sure there is a DezyneConnector component present in the scene!", gameObject.name); } }
// Use this for initialization void Start() { if (MessageHandlers != null && MessageHandlers.Length > 0) { DezyneConnector connector = FindObjectOfType(typeof(DezyneConnector)) as DezyneConnector; if (connector != null) { connector.Subscribe(MessageHandlers); } } }