protected void InitializeComponents() { CollisionHandler.DoActionWithCheckReference(() => CollisionHandler.Initialize(this)); spriteRenderer.DoActionWithCheckReference(() => _spriteRendererTransform = spriteRenderer.GetComponent <Transform>()); }
protected void InitializeComponents() { CollisionHandler.DoActionWithCheckReference(() => CollisionHandler.Initialize(this)); spriteRenderer.DoActionWithCheckReference(() => _spriteRendererTransform = spriteRenderer.GetComponent <Transform>()); }