//public static void CreateNormal(GameObject o, Vector2 d) => Create(o, d, 3, 0.5f); //public static void CreateSuper(GameObject o, Vector2 d) => Create(o, d, 4, 0.5f); public static void Create(GameObject obj, Vector2 dir, AnimationCurve power) { var SE_Obj = obj.GetComponent <StatusEffect_Object>(); if (SE_Obj is null) { return; } StatusEffect_Knokback knokback = obj.GetComponent <StatusEffect_Knokback>(); if (knokback.IsNull()) { knokback = obj.AddComponent <StatusEffect_Knokback>(); knokback.destroy_timer = new YCTimerData(power.keys[power.length - 1].time, () => Destroy(knokback)); } knokback.priority = 9; knokback.mDir2d = dir; knokback.pow = power; YCTimer.Add(knokback.destroy_timer); }