public void RegisterSelf(StatuePiece piece) { StatuePieces.Add(piece); //tell the statue pieces who the statuepieceinspector is. kinda ugly and unnecessary piece.SetStatuePieceInspector(StatuePieceInspector); }
private void SpawnKey() { _key = PhotonNetwork.Instantiate(_keyPrefab.name, _keySpawnTransform.position, Quaternion.identity).gameObject.GetComponent <StatuePiece>(); }