This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Xml; | |
using UnityEngine; | |
/* | |
Copyright (c) 2017 Sloan Kelly | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <WS2tcpip.h> | |
#include <string> | |
#include <sstream> | |
#pragma comment (lib, "ws2_32.lib") | |
using namespace std; | |
void main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class CloudFactory | |
{ | |
public static ICloudService Create() | |
{ | |
if (Application.platform == RuntimePlatform.WindowsPlayer) | |
return new SteamCloudService(); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class GameSystems : MonoBehaviour | |
{ | |
private static GameSystems _instance; | |
public static GameSystems Instance | |
{ | |
get | |
{ | |
if (_instance == null) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class GameSystems : MonoBehaviour | |
{ | |
private static GameSystems _instance; | |
public static GameSystems Instance | |
{ | |
get | |
{ | |
if (_instance == null) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <sys/types.h> | |
#include <unistd.h> | |
#include <sys/socket.h> | |
#include <netdb.h> | |
#include <arpa/inet.h> | |
#include <string.h> | |
#include <string> | |
using namespace std; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <sys/types.h> | |
#include <unistd.h> | |
#include <sys/socket.h> | |
#include <netdb.h> | |
#include <arpa/inet.h> | |
#include <string.h> | |
#include <string> | |
using namespace std; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
/// <summary> | |
/// Aspect ratio controller. Must be attached to the main camera. | |
/// </summary> | |
[RequireComponent(typeof(Camera))] | |
public class AspectRatio : MonoBehaviour | |
{ | |
[Tooltip("The idea ratio that you want the world rendered at")] | |
public float perfectRatio = 16f / 9f; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class Card | |
{ | |
public int CardID { get; set; } | |
public int CardLvl { get; set; } | |
public bool CardPlayed { get; set; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class SliderVolumeValue : MonoBehaviour | |
{ | |
const float DefaultVolume = 1f; | |
// Reference to Audio Source component | |
private AudioSource audioSrc; |
NewerOlder