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

        brush.Draw();
    }
Esempio n. 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);
    }
Esempio n. 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);
    }