//---데이터로드------------------------------- public void DataAccess(DataVo dataVo) { SkillPoints = int.Parse(dataVo.SaveSkillPoint); UpdataSkillPoints(); Skill1Level = int.Parse(dataVo.SaveSkill1Lev); Skill2Level = int.Parse(dataVo.SaveSkill2Lev); Skill3Level = int.Parse(dataVo.SaveSkill3Lev); Proficiency1 = float.Parse(dataVo.SaveSkill1Prof); Proficiency2 = float.Parse(dataVo.SaveSkill2Prof); Proficiency3 = float.Parse(dataVo.SaveSkill3Prof); ProfLoad(); SkillAnim1.enabled = false; SkillAnim2.enabled = false; SkillAnim3.enabled = false; UpdateSkillLevel(); UpdateSkillBtn(); SkillTime = GameObject.Find("TimeManager").GetComponent <TimeManager>(); Guage = GameObject.Find("AlchemyManager").GetComponent <AlchemyManager>(); AlchemyButton = GameObject.Find("AlchemyButton").GetComponent <BoxCollider>(); ArrowButtonCol0 = GameObject.Find("ArrowButton0").GetComponent <BoxCollider>(); ArrowButtonCol1 = GameObject.Find("ArrowButton1").GetComponent <BoxCollider>(); ArrowButtonCol2 = GameObject.Find("ArrowButton2").GetComponent <BoxCollider>(); ArrowButtonCol3 = GameObject.Find("ArrowButton3").GetComponent <BoxCollider>(); ArrowButtonCol4 = GameObject.Find("ArrowButton4").GetComponent <BoxCollider>(); }
/*string[] diaArray = * { * "" * };*/ // Initialization void Start() { alchemyScript = AlchemyMaster.GetComponent <AlchemyManager>(); Time.timeScale = 0f; instructions.text = tutText[tutTextIndex]; disableElement(alchemyScript.diamondButton); disableElement(alchemyScript.emeraldButton); disableElement(alchemyScript.sapphireButton); disableElement(alchemyScript.rubyButton); disableElement(alchemyScript.amethystButton); alchemyScript.setMaxEssence(50, 0); enableWalls(false); spellFlags = new bool[16]; }
// Use this for initialization void Awake() { manager = GameObject.FindGameObjectWithTag("AlchemyManager").GetComponent <AlchemyManager>(); //Debug.Log("started and found manager."); }