Created
April 1, 2018 05:18
-
-
Save kamera25/0e2fa431556cb47e9e1c5c8c417b4507 to your computer and use it in GitHub Desktop.
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 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