protected override void LoadContent() { _texture = new Texture2D(GraphicsDevice, 1, 1); _texture.SetData(new[] {Color.White}); _spriteBatch = new SpriteBatch(GraphicsDevice); _cloth = new Cloth(); }
private void Awake() { mouse = new MouseInfo(); mouse.influence = 26; mouse.cut = 8; mesh = GetComponent <MeshFilter>().mesh; cloth = new TearableCloth.Cloth(this); }
private void Awake() { mouse = new MouseInfo { influence = 26, cut = 8 }; mesh = GetComponent <MeshFilter>().mesh; cloth = new Cloth(this); }