示例#1
0
    public void ShootMissle(Transform t)
    {
        _missle = _poolingManager.GetObjectFromPool(_missles);

        if (_missle)
        {
            _missle.transform.position = t.position;
            _missle.transform.rotation = t.rotation;
            _missle.SetActive(true);
        }
        else
        {
            // Debug.Log("No missles are available right now");
        }
    }