// Use this for initialization void Start() { circleRevealer = GetComponent <FogOfWarCircleRevealer>(); if (!wpManager) { wpManager = GameObject.Find(vars.path_manager_name).GetComponent <wp_manager>(); } wpManager.addNodeObject(this.gameObject); if (type == node_type.res_node) { wpManager.addResObject(this.gameObject); } else if (type == node_type.base_node) { wpManager.addBaseObject(this.gameObject); } circle_holder.SetActive(false); if (type == node_type.base_node) { erobert = true; this.waypoint_id = 1; } else { this.waypoint_id = wpManager.get_wp_id(); } //disabled_collider(); //this.name = "node_" + waypoint_id.ToString(); }
// Use this for initialization void Start() { circleRevealer = GetComponent<FogOfWarCircleRevealer>(); if(!wpManager) { wpManager = GameObject.Find(vars.path_manager_name).GetComponent<wp_manager>(); } wpManager.addNodeObject(this.gameObject); if(type == node_type.res_node){ wpManager.addResObject(this.gameObject); }else if( type == node_type.base_node){ wpManager.addBaseObject(this.gameObject); } circle_holder.SetActive(false); if(type == node_type.base_node){ erobert = true; this.waypoint_id = 1; }else{ this.waypoint_id = wpManager.get_wp_id(); } //disabled_collider(); //this.name = "node_" + waypoint_id.ToString(); }