EventManager.Setup C# (CSharp) Méthode

Setup() private méthode

private Setup ( ) : void
Résultat void
    private void Setup()
    {
        // TO DO: Self create GameObject if not already created
    }

Usage Example

    void Start()
    {
        #if UNITY_STANDALONE
        Debug.Log("> UNITY_STANDALONE");
        eventManager = new SocketManager();
        #endif
        #if UNITY_EDITOR
        Debug.Log("> UNITY_EDITOR");
        eventManager = new SocketManager();
        #endif
        #if UNITY_ANDROID
        Debug.Log("> UNITY_ANDROID");
        eventManager = new EventManager();
        #endif

        eventManager.Setup();
    }