Exemple #1
0
 void Start()
 {
     KeepScript = InformationTransfer.playerController.transform.parent.gameObject.GetComponent <KeepInformation>();
     script     = InformationTransfer.playerController.GetComponent <PlayerController>();
     for (int i = 0; i < 8; i++)
     {
         board[i, Random.Range(0, 3)] = true;
     }
 }
Exemple #2
0
 void Start()
 {
     KeepScript = InformationTransfer.playerController.transform.parent.gameObject.GetComponent <KeepInformation>();
     script     = InformationTransfer.playerController.GetComponent <PlayerController>();
     readFile();
     selectWords();
     createBoard();
     fillBoard();
     positionateWords();
     fillLabel();
     StartCoroutine(counter());
 }
Exemple #3
0
    void Start()
    {
        KeepScript   = transform.parent.transform.parent.gameObject.GetComponent <KeepInformation>();
        playerScript = playerController.GetComponent <PlayerController>();
        for (int i = 0; i < 6; i++)
        {
            visitedBy[i] = false;
        }
        label = gameObject.GetComponentInChildren <Text>();
        int content = Random.Range(0, boxes.Count);

        game = boxes[content];
        boxes.RemoveAt(content);
    }
 void Awake()
 {
     if (info == null)
     {
         KeepInformation.info = this;
         DontDestroyOnLoad(gameObject);
         for (int i = 0; i < InformationTransfer.amountOfPlayers; i++)
         {
             DontDestroyOnLoad(InformationTransfer.root);
         }
     }
     else if (info != this)
     {
         Destroy(gameObject);
     }
 }