Example #1
0
    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);
        }
    }
Example #2
0
    // 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);
            }
        }
    }