mirror of
https://github.com/ConjureETS/OuijaMTLGJ2016.git
synced 2026-03-24 10:11:07 +00:00
27 lines
501 B
C#
27 lines
501 B
C#
using UnityEngine;
|
|
using System.Collections;
|
|
|
|
public class RuneBehaviour : MonoBehaviour {
|
|
|
|
public static float range;
|
|
public SpriteRenderer symbol;
|
|
public int letterNum;
|
|
|
|
// Use this for initialization
|
|
void Start () {
|
|
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update () {
|
|
|
|
}
|
|
|
|
public void SetSymbol(int letterNum)
|
|
{
|
|
this.letterNum = letterNum;
|
|
Debug.Log("runic_" + ('a' + letterNum));
|
|
symbol.sprite = Resources.Load<Sprite>("runic_" + (char)('a' + letterNum));
|
|
}
|
|
}
|