Esempio n. 1
0
    private void OnOverlap()
    {
        //hoverTime += Time.deltaTime;

        //if(hoverTime >=.01f)
        //{
        hoverTime = 0f;
        if (dir == Direction.left)
        {
            cameraMove.Left();
        }
        else if (dir == Direction.right)
        {
            cameraMove.Right();
        }
        else if (dir == Direction.up)
        {
            cameraMove.Up();
        }
        else if (dir == Direction.down)
        {
            cameraMove.Down();
        }
        //}
    }