Skip to content

Instantly share code, notes, and snippets.

@hota1024
Created March 31, 2018 13:27
Show Gist options
  • Save hota1024/35b4dd86c23d34f0063c06c6bed9a75b to your computer and use it in GitHub Desktop.
Save hota1024/35b4dd86c23d34f0063c06c6bed9a75b to your computer and use it in GitHub Desktop.
自分のUnityで使う命名規則とかファイル構成とかのメモ ref: https://qiita.com/hota1024/items/3e2f42125678be992646
float playerSpeed;
const string RoomKey = "xxx-xxx-xxx";
void SetPlayerSpeed(float value) { this.playerSpeed = value; }
float PlayerSpeed {
get { return this.playerSpeed; }
}
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Utils{
class Palette{
static const Color primary = new Color(0f, 0.5f, 1.0f);
static const Color primary = new Color(0f, 0.1f, 0.5f);
static const Color accent = new Color(1.0f, 0f, 1.0f);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment