Exemplo n.º 1
0
    void OnDragOver()
    {
        TouchController touch = TouchController.instance;

        if (touch.controllerGetSkill == null || controller == null ||
            GameplayManager.battleStatus != GameplayManager.BattleStatus.Playing || controller.gameObject == null ||
            touch.transformRootStart == null || touch.transformLookStart == null
            )
        {
            return;
        }

        Vector3 pointStart = touch.CirclePoint(touch.transformRootStart.transform,
                                               touch.transformLookStart.transform,
                                               touch.controllerGetSkill.transform.position,
                                               controller.gameObject.transform.position);

        touch.lineRenderer.enabled = true;
        touch.OnMouseOverTarget(pointStart, controller.gameObject);
        //Debug.Log("OnDragOver");
        touch.clickOnImage = true;
    }