コード例 #1
0
        public void FlashFxsetShaderConsts(coPostEffect thisobj)
        {
            coGameConnection serverConnection = "ServerConnection";

            if (console.isObject(thisobj))
            {
                thisobj.setShaderConst("$damageFlash", serverConnection.getDamageFlash().AsString());
                thisobj.setShaderConst("$whiteOut", serverConnection.getWhiteOut().AsString());
            }
            else
            {
                thisobj.setShaderConst("$damageFlash", "0");
                thisobj.setShaderConst("$whiteOut", "0");
            }
        }