コード例 #1
0
ファイル: Game1.cs プロジェクト: jbfp/Tearable-Cloth-XNA
 protected override void LoadContent()
 {
     _texture = new Texture2D(GraphicsDevice, 1, 1);
     _texture.SetData(new[] {Color.White});
     _spriteBatch = new SpriteBatch(GraphicsDevice);
     _cloth = new Cloth();
 }
コード例 #2
0
    private void Awake()
    {
        mouse           = new MouseInfo();
        mouse.influence = 26;
        mouse.cut       = 8;

        mesh  = GetComponent <MeshFilter>().mesh;
        cloth = new TearableCloth.Cloth(this);
    }
コード例 #3
0
    private void Awake()
    {
        mouse = new MouseInfo
        {
            influence = 26,
            cut       = 8
        };

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