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); } }
private void Start() { KU.StartTimer(() => LogFPS(.1f), .1f, true); }
public virtual void Activate() { gameObject.SetActive(true); timer = KU.StartTimer(ReturnToPool, Duration); }
public override void InitComponent() { KU.StartTimer(CheckForPickables, .1f, true); }