Exemplo n.º 1
0
    public void Disconnect()
    {
        if (_Connection)
        {
            _Body.isKinematic = false;
            _Connection.SetConnection(null);
            Assert.IsTrue(_Connection == null);

            if (Audio.Disconnect.EventInstance.hasHandle())
            {
                Audio.Disconnect.Play();
            }
        }
    }
Exemplo n.º 2
0
    public void ConnectTo(AbstractConnection con)
    {
        if (!IsConnected())
        {
            if (con && con.CanConnect(this))
            {
                con.SetConnection(this);
                Assert.IsTrue(_Connection == con);

                _Body.isKinematic = true;
                mSnapAnimTime     = 1.0f;
                if (Audio.Connect.EventInstance.hasHandle())
                {
                    Audio.Connect.Play();
                }
            }
        }
    }