Exemplo n.º 1
0
    /**
     * Move to the target and then destroy ourself
     */
    public void MoveTo(dfTextureSprite pTarget)
    {
        dfTweenVector3 v = GetComponent <dfTweenVector3>();

        mTexture.BringToFront();
        v.StartValue = mTexture.Position;
        v.EndValue   = new Vector3(pTarget.Position.x + (pTarget.Width / 2), pTarget.Position.y - (pTarget.Height / 2));
        v.Play();
    }
 protected void OnMouseDown()
 {
     isMouseDown = true;
     control.BringToFront();
 }