コード例 #1
0
ファイル: ManaStock.cs プロジェクト: nadirsky/polyjam016
	// Use this for initialization
	void Start () {
	if (instance != null) {
			Destroy (this);
			return;
		}

		instance = this;

		manaText.text = mana.ToString ();
		//Debug.Log (ManaStock.instance.Mana.ToString ());
	}
コード例 #2
0
ファイル: SpellCaster.cs プロジェクト: nadirsky/polyjam016
	void Start()
	{
		if (CursorImage == null) 
		{
			Debug.LogError ("Nie ma kursora");
			return;
		}

		Spell.mouseCursor = CursorImage;
		Spell.mouseCursor.gameObject.SetActive (false);

		if (spell.Length == 0) {
			Debug.LogError ("Nie ma przypisanych czarów");
			return;
		}

	//	spell = GameObject.FindObjectsOfType<Spell> ();

		manaStock = ManaStock.instance;


	}