示例#1
0
 void Awake()
 {
     _weaponHandler = GetComponent<WeaponHandler>();
 }
示例#2
0
 public virtual void Start()
 {
     ResetStatuses();
     SetandReturnOutfitSystem();
     _anim = GetComponent<Animator>();
     _weaponHandler = GetComponent<WeaponHandler>();
     // sets up cat's preferences
     _Prefs = new AnimalPreferences(70, 10, 50, 75, 40, 15, 3);
     _petAgeTimer = gameObject.AddComponent<Timer>();
     // begin aging process
     _petAgeTimer.SetTimer(TimeLapseRate);
     _petAgeTimer.PauseUnPause();
 }