Exemplo n.º 1
0
    void OperateXiaCiYiDingState(Vector2 downPos)
    {
        object ob = RayOperation.LaunchRayOfScreen(downPos, RayOperation.ReturnType.GameObject);

        if (ob == null)
        {
            return;
        }

        GameObject       needGO           = (GameObject)ob;
        PlayerController playerController = needGO.GetComponent <PlayerController>();

        if (!playerController)
        {
            return;
        }
        PlayerController.SelfPlayer.KeepAvatar.cellCall("xiaCiYiDingSkill", playerController.KeepAvatar.id);

        //还原状态
        CurrentState = OperationType.Normal;
    }
Exemplo n.º 2
0
    void OperateNanShangJiaNanState(Vector2 downPos)
    {
        object ob  = RayOperation.LaunchRayOfScreen(downPos, RayOperation.ReturnType.Position);
        object ob1 = RayOperation.LaunchRayOfScreen(downPos, RayOperation.ReturnType.GameObject);

        if (ob == null || ob1 == null)
        {
            return;
        }

        GameObject needGO = (GameObject)ob1;

        if (!needGO.CompareTag("track"))
        {
            return;
        }

        Vector3 pos = (Vector3)ob;

        PlayerController.SelfPlayer.KeepAvatar.cellCall("nanShangJiaNanSkill", pos, int.Parse(needGO.name));

        //还原状态
        CurrentState = OperationType.Normal;
    }