private void Awake()
 {
     if (Instance == null)
     {
         Instance = this;
     }
 }
Example #2
0
 void Awake()
 {
     uiGame = GetComponent <UI_GamePlay>();
     uiGame.SetMaxValueOfSlider(force);
     rb = GetComponent <Rigidbody>();
 }