Esempio n. 1
0
        /*
         * 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);
        }
Esempio n. 2
0
 void Awake()
 {
     _simHolder = GetComponent <ISimHolder>();
 }