コード例 #1
0
ファイル: Sound.cs プロジェクト: relaxslow/lastbattle-unity
    public static void createAndPlay(string name, ContactInfo contactInfo)
    {
        Vector3 pos = Vector3.zero;

        if (contactInfo.selfVertex != null)
        {
            pos = contactInfo.selfVertex.pos;
        }
        else
        {
            pos = Math3D.AveragePos(contactInfo.selfSurface.points);
        }
        createAndPlay(name, pos);
    }