Ejemplo n.º 1
0
    public GunBase(GunData data, GameObject player)
    {
        gun = new GunRuntimeData(data);

        transform = player.transform;
        box       = player.GetComponent <BoxCollider2D>();
    }
Ejemplo n.º 2
0
    public GunBase(GunData data, GameObject player) {
        gun = new GunRuntimeData(data);

        transform = player.transform;
        box = player.GetComponent<BoxCollider2D>();
    }