Exemple #1
0
 void Awake()
 {
     // allowsyou to call the singleton class from anywhere inside any script in current scene where
     // this script is attach to
     instance = this;
 }
Exemple #2
0
 void Awake()
 {
     // allowsyou to call the singleton class from anywhere inside any script in current scene where
     // this script is attach to
     instance = this;
 }