- Home /
How to call class object from static function?
I have a static method IncreaseScore() that I need to implement. It is within class ScoreManager and there is a list called (public GameObject[] Players) in the class that IncreaseScore() needs to reference. However, I tried using this.Players but does not work.
How do I reference the Players list from the IncreaseScore() static function?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612094329im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
A node in a childnode? 1 Answer
List.Contains Method wont work. 1 Answer
Unable to access a static method from another class 2 Answers
Static class member for offset 1 Answer
Why is my kill method not running the score system method call? 1 Answer