예제 #1
0
파일: SaveJson.cs 프로젝트: slvr/Pandemic
    public static pe_ETM saveEventTransferManager()
    {
        pe_ETM pe_etm = new pe_ETM();

        //EventTransferManager eventTransferManager = GameObject.FindGameObjectsWithTag("EventTransferManager").GetComponent<EventTransferManager>();
        //pe_etm.currentPlayerTurn = eventTransferManager.currentPlayerTurn;
        /* ... */
        return(pe_etm);
    }
예제 #2
0
    public static pe_ETM saveEventTransferManager()
    {
        pe_ETM pe_etm = new pe_ETM();
        EventTransferManager eventTransferManager = GameObject.FindGameObjectWithTag("EventTransferManager").GetComponent <EventTransferManager> ();

        pe_etm.currentPlayerTurn   = eventTransferManager.currentPlayerTurn;
        pe_etm.currentActiveButton = eventTransferManager.currentActiveButton;
        pe_etm.setupPhase          = eventTransferManager.setupPhase;
        pe_etm.waitingForPlayer    = eventTransferManager.waitingForPlayer;
        pe_etm.diceRolledThisTurn  = eventTransferManager.diceRolledThisTurn;
        pe_etm.shipMovedThisTurn   = eventTransferManager.shipMovedThisTurn;
        pe_etm.waitingforcards     = eventTransferManager.waitingforcards;
        pe_etm.waitingForPlayers   = eventTransferManager.waitingForPlayers;
        pe_etm.playerChecks        = eventTransferManager.playerChecks;
        return(pe_etm);
    }