예제 #1
0
 void Start()
 {
     cat_Controller   = Cat.GetComponent <Cat_Controller>();
     score_controller = Score.GetComponent <Score_Controller>();
     Variable         = GameObject.Find("Variable_Controller");
     variable         = Variable.GetComponent <Variable_Controller>();
 }
예제 #2
0
 void Start()
 {
     variable         = Variable.GetComponent <Variable_Controller>();
     score_controller = score.GetComponent <Score_Controller>();
     rigid            = GetComponent <Rigidbody2D>();
     anim             = GetComponent <Animator>();
 }
예제 #3
0
 void Start()
 {
     highScore = PlayerPrefs.GetInt("HighScore");
     variable  = Variable.GetComponent <Variable_Controller>();
     score     = 0;
     increase  = false;
 }
예제 #4
0
 void Start()
 {
     variable = Variable.GetComponent <Variable_Controller>();
 }