public void createFactory(GunFactory factory)
    {
        GunRequirements textRequire = newText.GetComponent <GunRequirements>();

        //Debug.Log(factory);
        IGun c = factory.Create();

        //Debug.Log(c);
        g_spawn.GetGun(c.ToString());
        //Debug.Log(c);

        textRequire.objectText.text = c.ToString();
    }
示例#2
0
    public void createFactory(GunFactory factory)
    {
        Debug.Log(factory);
        IGun c = factory.Create();

        g_spawn.GetGun(c.ToString());
        Debug.Log(c);
    }