Skip to content

Instantly share code, notes, and snippets.

View dasannikov's full-sized avatar
😃

Dmitrii Sannikov dasannikov

😃
View GitHub Profile
@dasannikov
dasannikov / TheThing.cs
Last active April 8, 2023 17:07
Unity Coding Guidelines
using UnityEngine;
using System.Collections;
namespace CompanyName {
public class TheThing : MonoBehaviour {
// 1
// Public fields section. Try to avoid public fields.
using System;
using System.Reflection;
using Leopotam.Ecs;
using UnityEngine;
//-----------------------------------------------------------------------------
// Attributes
//-----------------------------------------------------------------------------
class EcsInjectToStatic : Attribute { }
using System;
using System.Collections.Generic;
using System.IO;
using System.Net.WebSockets;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace NativeWebSocket {
using System;
using System.Text;
//----------------------------------------------------------------------------
// Using:
//
// private UpdateCheckString<int, int> _updateCheck;
// ...
// if(_updateCheck.IsChanged("Time now: {0}:{1}", DateTime.UtcNow.Minute, DateTime.UtcNow.Second))
// TextObject.text = _updateCheck;
@dasannikov
dasannikov / csv.h
Created May 22, 2015 00:09
CSV file reader
#ifndef _u_csv_h_
#define _u_csv_h_
#include <iostream>
#include <fstream>
#include <sstream>
#include <vector>
#include <string>