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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Jeux - S.T.A.R.S</title> | |
<link rel="stylesheet" type="text/css" href="css/style.css"/> | |
<style> | |
.game-canvas { |
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 void TickLoop() | |
{ | |
Log.Info("Logic loop started."); | |
int loopTime = 0; | |
Stopwatch watch = Stopwatch.StartNew(); | |
RealmTime t = new RealmTime(); |
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 LiteNetLib.Utils; | |
namespace AG_LNL_Shared.Networking.World.Packets.DataObjects.Base.Utils | |
{ | |
/// <summary> | |
/// Utils to serialize and deserialize arrays. | |
/// </summary> | |
public static class NetworkArray | |
{ | |
public static T[] Deserialize<T>(NetDataReader rdr) where T : DataObject, new() |
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; | |
namespace Scripts | |
{ | |
public class MapReset : MonoBehaviour | |
{ | |
public Terrain terrain; | |
private float[,] originalHeights; | |
private void OnApplicationQuit() { |
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
/// <summary> | |
/// Get the average color of a texture. The more samplePoints, the more accurate is the average color but also takes more performance. | |
/// </summary> | |
/// <param name="sprite"></param> | |
/// <param name="_samplePoints"></param> | |
/// <returns></returns> | |
public static Color GetTextureAverageColor(Sprite sprite, int _samplePoints) | |
{ | |
Color sampleColor = new Color(); | |
float r = 0; |
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 Tools | |
{ | |
/// <summary> | |
/// Get the average color of a texture. The more samplePoints, the more accurate is the average color but also takes more performance. | |
/// </summary> | |
/// <param name="sprite"></param> | |
/// <param name="_samplePoints"></param> | |
/// <returns></returns> | |
public static Color GetTextureAverageColor(Sprite sprite, int _samplePoints) | |
{ |
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 Bolt; | |
using UnityEngine; | |
using System; | |
using DefaultNamespace; | |
using Ludiq; | |
[UnitTitle("Dialogue")] | |
[UnitShortTitle("Dialogue")] |
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
// Uses Odin's Button and the following package to take a 360 capture | |
// https://assetstore.unity.com/packages/tools/camera/360-screenshot-capture-112864 | |
public class Take360Screenshot : MonoBehaviour | |
{ | |
public int imageWidth = 2048; | |
private bool saveAsJPEG = false; | |
[Button] | |
void TakePicture() |
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.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
using Humanizer; | |
using IngameDebugConsole; | |
using UnityEngine; | |
using UnityEngine.Rendering; | |
using VirtualRamen.Utils; |
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; | |
namespace MV_Archetype_Utils | |
{ | |
public static class Vector3Ext | |
{ | |
// Clone a Vector3 | |
public static Vector3 Clone(this Vector3 v) | |
{ | |
return new Vector3(v.x, v.y, v.z); |
OlderNewer