void createMastersOfShip()
    {
        Vector3 location = new Vector3(2, roomHeight - roomFloorPadding * floorSquaresPerTable, 0);

        master = ((GameObject)Instantiate(masterPrefab, location, Quaternion.identity)).GetComponent <MasterofShips>();
        master.setLocation(location);
        master.setProcessingTime(secondsToProcessPuzzleRequest);
        master.setAutomatic(autoMasterOfShips);
        master.setPassports(Passport, HumanPassport);

        if (autoMasterOfShips)
        {
            Button manAdd = Controls.GetComponentInChildren <Button> ();
            manAdd.interactable = false;
        }
    }
Ejemplo n.º 2
0
 public void setMasterReference(MasterofShips masterIn)
 {
     master = masterIn;
 }