void Start() { tileMap = GetComponent <Tilemap>(); if (PhotonNetwork.InRoom) { ActivePlayer = PhotonNetwork.LocalPlayer.GetPlayerNumber(); object seed; PhotonNetwork.CurrentRoom.CustomProperties.TryGetValue(RoomLauncher.SEED_PROP_KEY, out seed); TMG.GenerateWithSeed((int)seed); initializedPlayers = new List <bool>(PhotonNetwork.CurrentRoom.PlayerCount); initializedPlayers[ActivePlayer] = true; } else { TMG.Generate(); } SetDefaults(); BoardHighlights = Highlights.GetComponent <BoardHighlights>(); BoardHighlights.Generate(W, H); SpawnAllPlayers(); initializedPlayers = new List <bool>(numPlayers); items = new List <Item>(); itemController = ItemTilemap.GetComponent <ItemController>(); SpawnInitialItems(); SendFinishInitEvent(); }
private void Start() { Instance = this; highlights = new List <GameObject>(); redHighlights = new List <GameObject>(); }
// Initlization function. private void Start() { // Create instance of highlight class. Instance=this; // Initialization of highlights list. this.highlights=new List<GameObject>(); } // End of Start
// Start is called before the first frame update void Start() { _BoardHighlights = gameObject.GetComponent <BoardHighlights>(); _ChessEngine = gameObject.GetComponent <ChessEngine>(); SpawnAllPieces(); SpawnAllSnapzones(); InitTurn(); }
private void Start() { // Debug.Log("GAME STARTED"); Width = 8; Height = 8; numPlayers = 0; playerTurn = 0; xxx = BoardHighlights.Instance; SpawnAllPlayers(); selectedCharacter = Characters[0]; }
private void Start() { Instance = this; highlights = new List <GameObject>(); parent = new GameObject("Highlights"); selectedHighlight = Instantiate(selectedPref); selectedHighlight.SetActive(false); hoverHighlight = Instantiate(hoverHighlightPrefab); hoverHighlight.SetActive(false); killerHighlight = Instantiate(killerHighlighPrefab); killerHighlight.SetActive(false); checkedHighlight = Instantiate(killerHighlighPrefab); checkedHighlight.SetActive(false); }
public void Start() { Instance = this; highlights = new List <GameObject>(); lastMove = new List <GameObject>(); }
private void Start() { // set instance to this, instantiate list of highlights Instance = this; highlights = new List <GameObject>(); }
private void Start() { Instance = this; highlights = new List <GameObject>(); //전역에다가 선언해도 문제는 없다. 그냥 개발자의 마음 }
private void Start() { _BoardManager = this.transform.parent.GetComponent <BoardManager>(); _BoardHighlights = this.transform.parent.GetComponent <BoardHighlights>(); }
private void Start() { // Instantiates the singleton Instance = this; instantiateHighlightObjects(); }
public HumanPlayer(int playerId, PieceColour colour, InternalBoard internalBoard) : base(playerId, colour, internalBoard) { highlightsManager = BoardHighlights.Instance; }
private List <GameObject> Highlights; //list of highlights private void Start() { Instance = this; Highlights = new List <GameObject>(); //instantiate list of highlights as list of GameObjects }
private void Start() { Instance = this; PlaceAllTiles(); }