| D:\ValheimDev\Dumps\Old\assembly_valheim\WearNTearCOMCalculationSwitcher.cs | Untitled right | ||
|---|---|---|---|
| . | using System; |
|
|
using UnityEngine; |
|
||
|
|
||
public class WearNTearCOMCalculationSwitcher : MonoBehaviour |
|
||
{ |
|
||
private void Awake() |
|
||
{ |
|
||
WearNTear component = base.GetComponent<WearNTear>(); |
|
||
if (component) |
|
||
{ |
|
||
component.UseCorrectCOMCalculation(this |
|
||
} |
|
||
} |
|
||
|
|
||
[SerializeField] |
|
||
private bool m_useCorrectCOMCalculation = true; |
|
||
} |
|
||
|
|
||