private void Awake() { _layerMask = LayerMaskUtil.CreateLayerMask("Player", "Head", "UI", "Interactive").Invert(); if (_predictionBuffer == null || _historyBuffer == null) { InitBuffers(); } }
//private static readonly Action<SectionForceInput>[] ForceApplicators; //static Airfoil() { // ForceApplicators = new Action<SectionForceInput>[3]; // ForceApplicators[(int) ForceType.Lift] = ApplyLift; // ForceApplicators[(int)ForceType.Drag] = ApplyDrag; // ForceApplicators[(int)ForceType.Moment] = ApplyMoment; //} private void Awake() { ConfigureAxes(); RecalculateSectionProperties(); _layerMask = LayerMaskUtil.CreateLayerMask("Player", "Head", "UI", "Interactive").Invert(); Clear(); }
void Awake() { _layerMask = LayerMaskUtil.CreateLayerMask(_layers); }