PluginImport.OnDestroy C# (CSharp) Method

OnDestroy() public method

public OnDestroy ( ) : void
return void
    void OnDestroy()
    {
        if (port == "") {
            return;
        }

        Debug.Log ("Closing port " + port);

        ClosePort (port);
    }