protected virtual void FixedUpdate() { if (Container == null || pysicItem.Sleep) { return; } DeltaPosition = pysicItem.Position - (Vector2)transform.position; transform.position = pysicItem.Position; RotateOnDirection(); pysicItem.Update(); }
private void FixedUpdate() { if (Container == null) { return; } anim.SetBool("dead", false); //Debug.LogError(anim.GetBool("dead")); ChackAnim(); pysicItem.Update(); transform.position = pysicItem.Position; // PhysicsManager.ChackCollision(pysicItem); }