This file contains hidden or 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> | |
/// Draw line | |
/// </summary> | |
/// <param name="from">From in texture coordinates</param> | |
/// <param name="to">To in texture coordinates</param> | |
/// <param name="brushSize">Brush size</param> | |
/// <param name="color">Color</param> | |
/// <param name="isForeignDrawCommand">Is foreign draw command</param> | |
public void DrawLine(Vector2 from, Vector2 to, float brushSize, Color32 color, bool isForeignDrawCommand) | |
{ |
This file contains hidden or 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.Threading.Tasks; | |
using UnityEngine; | |
/// <summary> | |
/// Plane class | |
/// </summary> | |
public static class Plane | |
{ | |
/// <summary> |
This file contains hidden or 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
bool:AreKeysDown(keys, oldKeys, newKeys) | |
{ | |
return ((oldKeys & keys) != keys) && ((newKeys & keys) == keys); | |
} | |
bool:AreKeysUp(keys, oldKeys, newKeys) | |
{ | |
return ((oldKeys & keys) == keys) && ((newKeys & keys) != keys) | |
} |
This file contains hidden or 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 <filesystem> | |
#include <fstream> | |
static void WriteToFile(const std::filesystem::path& path, const std::string& contents) | |
{ | |
std::ofstream ofs(path.string()); | |
if (ofs.is_open()) | |
{ | |
ofs << contents; |
OlderNewer