Exemplo n.º 1
0
    public static Projectile SpawnProjectile(GameParams.ProjectStruct projectileInfo, Transform gun)
    {
        var result = ObjectsPool.Instance.GetProjectile(projectileInfo.t);

        result.transform.parent        = gun;
        result.transform.localPosition = Vector3.zero;
        return(result); //Instantiate(projectileInfo.projectileProto, gun);
    }
Exemplo n.º 2
0
 private void Start()
 {
     _mayShot       = true;
     type           = initialType;
     projectileInfo = GameParams.GetProjectileInfo(type);
 }