예제 #1
0
 private void Awake()
 {
     _rigidbody             = GetComponent <Rigidbody>();
     intearactorEvent       = GetComponent <InteractorEvent>();
     _rigidbody.isKinematic = true;
     _juiceAnimation        = GetComponentInChildren <JuiceAnimation>();
 }
예제 #2
0
 private void SetRaddishTargetsForNewLevel()
 {
     for (int i = 0; i < RaddishTargets.Length; i++)
     {
         JuiceAnimation anim = RaddishTargets[i].GetComponentInChildren <JuiceAnimation>();
         if (LevelRequirements[CurrentLevel] > i && !MaxLevel && !DisableShop)
         {
             anim.PopScale(anim.transform.localScale.x, 1, 0.5f);
         }
         else
         {
             anim.LerpScale(anim.transform.localScale.x, 0, 0.5f);
         }
     }
 }