示例#1
0
	void Awake() 
	{ 
		ms_kIstance = this; 
	}
示例#2
0
	void OnDestory()
	{
		ms_kIstance = null;
	}
示例#3
0
	public static void CreateCashStoreForMiracle()
	{
		GameObject cashStoreObj = GameObject.Instantiate(Resources.Load("UI/MiracleShop/GUI_MiracleShop")) as GameObject;
		AsCashStore cashStore = null;

		if( cashStoreObj == null)
			return;

		cashStore = cashStoreObj.GetComponentInChildren<AsCashStore>();

		cashStore.SetGotoMenuAfterInit(eCashStoreMenuMode.CHARGE_MIRACLE, eCashStoreSubCategory.NONE, 0);

		if (AsGameMain.s_gameState == GAME_STATE.STATE_INGAME)
		{
			cashStore.InitilizeStore(0, (eCLASS)AsUserInfo.Instance.SavedCharStat.class_);
			AsHudDlgMgr.Instance.SetCashStoreObj(cashStoreObj);
		}
		else
		{
			cashStore.InitilizeStore(0, eCLASS.NONE);
			ms_kIstance = cashStore;
			AsNotify.Instance.CashStoreRef = cashStore;
		}

		cashStoreObj.transform.localPosition = new Vector3( 0.0f, 0.0f, -20.0f);
	}