Ejemplo n.º 1
0
        public override void CopyTo(BloxBlock block)
        {
            base.CopyTo(block);
            Variable_Block obj = block as Variable_Block;

            obj.varName = this.varName;
            obj.varType = this.varType;
        }
Ejemplo n.º 2
0
        protected override void InitBlock()
        {
            Variable_Block variable_Block = base.paramBlocks[0] as Variable_Block;

            if (variable_Block == null)
            {
                base.LogError("You must specify the variable to use for count-down, via the Variable block.", null);
            }
            else if (variable_Block.varType == plyVariablesType.Event)
            {
                base.LogError("Event Variables are not allowed in this Block.", null);
            }
        }