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; | |
using System.Collections; | |
using System.Collections.Generic; | |
namespace PixelWizards.GameSystem.Controllers | |
{ | |
// the data model for the character controller. I like to keep vars like this in a separate class to organize them | |
// and keep the main controller script as clean as possible. | |
// because it is set to be serializable, these vars are exposed in the editor (except where noted) when you attach | |
// the CharController component to your character |
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; | |
using System.Collections; | |
public class RoamBetweenPoints : MonoBehaviour { | |
public Transform[] targets; | |
public LayerMask groundLayer; | |
private Transform target; | |
private NavMeshAgent agent; |
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
// Drop into Assets/Editor, use "Tools/Regenerate asset GUIDs" | |
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.IO; | |
using UnityEditor; | |
namespace UnityGuidRegenerator { | |
public class UnityGuidRegeneratorMenu { |
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
{ | |
"air_force_blue_raf": { | |
"name": "Air Force Blue (Raf)", | |
"hex": "#5d8aa8", | |
"rgb": [93, 138, 168] | |
}, | |
"air_force_blue_usaf": { | |
"name": "Air Force Blue (Usaf)", | |
"hex": "#00308f", | |
"rgb": [0, 48, 143] |
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 CommunicationLayer : Monobehavior | |
{ | |
public string response_message; | |
string baseAPIEndpoint = ClientConstants.GAMESERVER_URL; // base url for your API endpoints | |
/// <summary> | |
/// Sends a Generic API call. should be done via coroutine | |
/// </summary> | |
/// <returns>The API call.</returns> | |
/// <param name="endpoint">Endpoint we are wanting to hit</param> |
NewerOlder