/* * Unity events */ void Awake() { if (!_renderingSettings) { throw new System.NullReferenceException("SimRenderingSettingsを設定してください。"); } _renderer = GetComponent <MeshRenderer>(); _filter = GetComponent <MeshFilter>(); _simHolder = GetComponent <ISimHolder>(); _builder = new MeshBuilder("Sim mesh", useUV: true, useColor: true, dynamic: true); }
void Awake() { _simHolder = GetComponent <ISimHolder>(); }