Exemplo n.º 1
0
 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);
    }
Exemplo n.º 3
0
    private void Awake()
    {
        mouse = new MouseInfo
        {
            influence = 26,
            cut       = 8
        };

        mesh  = GetComponent <MeshFilter>().mesh;
        cloth = new Cloth(this);
    }