コード例 #1
0
    void ShootRay()
    {
        RaycastHit hit;
        Ray        ray = Camera.main.ScreenPointToRay(new Vector3(Screen.width / 2.0f, Screen.height / 2.0f, 0f));

        if (Physics.Raycast(ray, out hit, 1000.000f))
        {
            Absinthe _bottle = hit.transform.gameObject.GetComponent <Absinthe>();
            if (_bottle)
            {
                if (Vector3.Distance(this.transform.position, hit.transform.position) < clickDistance)
                {
                    absintheLevel += 1.0f;
                    // _particle.Play();
                }
            }
        }
    }
コード例 #2
0
ファイル: BlindPGSQL.cs プロジェクト: QardenEden/Absinthe
    // }}}
    // {{{ SelectValueForGivenPrimaryKey
    public string SelectValueForGivenPrimaryKey(string FieldName, string TableName, Absinthe.Core.GlobalDS.PrimaryKey pk)
    {
        StringBuilder retVal = new StringBuilder();
        retVal.Append("SELECT ").Append(FieldName).Append(" FROM ").Append(TableName);
        retVal.Append(" WHERE ").Append(pk.Name).Append("=").Append(pk.Value);

        return retVal.ToString();
    }
コード例 #3
0
ファイル: BlindPGSQL.cs プロジェクト: QardenEden/Absinthe
    // }}}
    // {{{ SelectLengthOfConvertedRecordValue
    public string SelectLengthOfConvertedRecordValue(string FieldName, string TableName, Absinthe.Core.GlobalDS.PrimaryKey pk)
    {
        StringBuilder retVal = new StringBuilder();

        retVal.Append("SELECT LENGTH(").Append(FieldName).Append(") FROM ").Append(TableName);
        retVal.Append(" WHERE ").Append(pk.Name).Append("=").Append(pk.Value);

        return retVal.ToString();
    }
コード例 #4
0
ファイル: BlindPGSQL.cs プロジェクト: QardenEden/Absinthe
    // }}}
    // {{{ SelectCharacterValueForGivenPrimaryKey
    public string SelectCharacterValueForGivenPrimaryKey(long Index, string FieldName, string TableName, Absinthe.Core.GlobalDS.PrimaryKey pk)
    {
        StringBuilder retVal = new StringBuilder();

        retVal.Append("SELECT ASCII(SUBSTR(").Append(FieldName).Append(",").Append(Index).Append(",1)) FROM ");
        retVal.Append(TableName).Append(" WHERE ").Append(pk.Name).Append("=").Append(pk.Value);

        return retVal.ToString();
    }
コード例 #5
0
ファイル: BlindSybaseSQL.cs プロジェクト: QardenEden/Absinthe
    // }}}
    // {{{ SelectCharacterValueForConvertedRecordValue
    public string SelectCharacterValueForConvertedRecordValue(long Index, string FieldName, string TableName, Absinthe.Core.GlobalDS.PrimaryKey pk)
    {
        StringBuilder retVal = new StringBuilder();

        retVal.Append("SELECT ASCII(SUBSTRING(CONVERT(VarChar,").Append(FieldName).Append("),").Append(Index);
        retVal.Append(",1)) FROM ").Append(TableName).Append(" WHERE ").Append(pk.Name).Append(" = ").Append(pk.Value);

        return retVal.ToString();
    }