publicTechtreeManager techtreeManager;publicvoidStartResearch(){ // Research the first node in the techtree. -1 is the node ID. This can be changed on the nodevar _node =techtreeManager.ResearchTechInTechtree(typeof(Techtree),"PlayerTechtree","-1");if (_node !=null) { // Subscribe to the on progress event_node.OnResearchProgress-= Progress;_node.OnResearchProgress+= Progress; }else { // Research failed. Maybe because we don't have enough resourcesDebug.Log("Research failed, not enough resources"); }}voidProgress(float _progress){Debug.Log("progress: "+ _value);}
GetTechNode
Returns a techtree node. The techtree node contains properties like, unlocked or researched.