Пример #1
0
 public void ApplyDamage(int amount, Vector3 dir)
 {
     ApplyDamage(amount);
     controlledCharacter.PuppetMasterComponent.pinWeight = 0;
     KU.StartTimer(() => controlledCharacter.PuppetMasterComponent.pinWeight = 1, 1);
     foreach (var rb in controlledCharacter.PuppetMasterComponent.transform.GetChild(0).GetComponentsInChildren <Rigidbody>())
     {
         rb.AddForce(dir * amount, ForceMode.Impulse);
     }
 }
Пример #2
0
 private void Start()
 {
     KU.StartTimer(() => LogFPS(.1f), .1f, true);
 }
Пример #3
0
 public virtual void Activate()
 {
     gameObject.SetActive(true);
     timer = KU.StartTimer(ReturnToPool, Duration);
 }
Пример #4
0
 public override void InitComponent()
 {
     KU.StartTimer(CheckForPickables, .1f, true);
 }