private void WcSkillFindandSetValue() { mWCLevel = Hud.transform.Find("InventPanelButtons/SkillsPane/WoodcuttingSkill").GetComponent <WCLevel>(); mWCLevel.Min = 1; mWCLevel.Max = 99; startLevel = Level; mWCLevel.SetValue(1); }
// Start is called before the first frame update private void Start() { x = Random.Range(2, 30); //y = 20; //y += Random.Range(20,200); y = Random.Range(20, 350); z = 0; pos = new Vector3(x, y, z); transform.position = pos; level = FindObjectOfType <WCLevel>(); stats = FindObjectOfType <GameStateWC>(); CountBreakableWords(); GetComponent <Rigidbody2D>().velocity = new Vector2(0, -5); }