// Use this for initialization
        void Start()
        {
            button = GetComponent <SCButton> ();

            switch (index)
            {
            case 0:
                d_x = 1;
                d_y = -1;
                break;

            case 1:
                d_x = -1;
                d_y = -1;
                break;

            case 2:
                d_x = 1;
                d_y = 1;
                break;

            case 3:
                d_x = -1;
                d_y = 1;
                break;
            }
        }
 void OnEnable()
 {
     btn = (SCButton)target;
 }