예제 #1
0
    public static void DrawWithBrush()
    {
        GameObject go    = Selection.activeGameObject;
        IMBrush    brush = go.GetComponent <IMBrush>();

        brush.Draw();
    }
예제 #2
0
    public void Attack(IMBrush brush)
    {
        this.audioSource.Play();
        brush.Draw();
        MeshCollider component = (MeshCollider)((Component)this.metaball).GetComponent <MeshCollider>();

        if (!Object.op_Inequality((Object)component, (Object)null))
        {
            return;
        }
        component.set_sharedMesh(this.metaball.Mesh);
    }
예제 #3
0
    public void Attack(IMBrush brush /*, Vector3 position*/)
    {
        audioSource.Play();

        brush.Draw();

        MeshCollider mc = metaball.GetComponent <MeshCollider>();

        if (mc != null)
        {
            mc.sharedMesh = metaball.Mesh;
        }

//        Instantiate(hitPS.gameObject, position, Quaternion.identity);
    }