コード例 #1
0
    // Update is called once per frame
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.Alpha1))
        {
            Pooling_BulletTest pBullet = _pManagerPool_Bullet.DoPop(Pooling_BulletTest.ProjectileModel.Model_Projectile_Blue);
            pBullet.DoInitBullet(_pTransMuzzle);
        }

        if (Input.GetKeyDown(KeyCode.Alpha2))
        {
            Pooling_BulletTest pBullet = _pManagerPool_Bullet.DoPop(Pooling_BulletTest.ProjectileModel.Model_Projectile_Red);
            pBullet.DoInitBullet(_pTransMuzzle);
        }
    }
コード例 #2
0
 private void _pManagerPool_Bullet_p_EVENT_OnMakeResource(Pooling_BulletTest.ProjectileModel arg1, Pooling_BulletTest arg2)
 {
     Debug.Log(string.Format("총알 생성 Key : {0} Object Name : {1}", arg1, arg2.name));
 }