Skip to content

Instantly share code, notes, and snippets.

@kamera25
Created April 1, 2018 05:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kamera25/0e2fa431556cb47e9e1c5c8c417b4507 to your computer and use it in GitHub Desktop.
Save kamera25/0e2fa431556cb47e9e1c5c8c417b4507 to your computer and use it in GitHub Desktop.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SpriteMove : MonoBehaviour {
// 設定データを入れる
static Dictionary<string, float> settingDic = new Dictionary<string, float>(){
{"speedMax", 0F},
{"velocityMax", 0F}
};
static public void SetDict( string key, float value)
{
settingDic[key] = value;
Debug.Log( "Changed Value key: " +key+ " / value:"+ value);
}
private void Update()
{
Debug.Log(settingDic["speedMax"]);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment