コード例 #1
0
    // pull the top value from the specified Card
    IEnumerator MOVE_FROM()
    {
        // grab card reference
        CurrentArg = current.Arg;
        CardLogic card = cardContainer.GetCard((int)CurrentArg);

        // insert a pause if grabbing consecutive inputs so the action is visible to the player
        if (previous != null && previous.Instruction == OpCode.MOVE_FROM)
        {
            yield return(new WaitForSeconds(InstructionDelay));
        }

        // Computron picks up the top item from the specified Card
        CurrentValue = card.MoveFrom();
        ShowDataCube(CurrentValue);

        currentState = ACTOR_STATE.REPORTING;
    }